📋 Metadata
- Author: roaoao
- Date: 2017-03-05 18:56:37
- Type:
answer - Reply to: post_00579
💬 Content
Jakro:
I have a macro that contains 8 commands. The macro works perfectly if i use only the first 7 commands, as soon as i add the final command the macro stops working. The final command is a simple deselect command. What’s weird is that if i just add the 8th command to the 7th command using a ; then it works perfectly.
We cannot use the same sub-operator twice in macro operators. Blender will ignore properties for the first one and use the same properties for both of them.
That’s why the second De/select command breaks the macro.
You already know how to fix this issue. You can combine 2 commands together. Or just add some dummy code to your command. For example “; None ”:
bpy.ops.mesh.select_all(action='DESELECT'); None
In this case PME will generate a new sub-operator for macro.