Post #581:
Ja
π Metadata
- Author: roaoao
- Date: 2017-03-05 18:56:37
- Type:
answer - Quality Score: 8/10
- Reply to: post_00579
π·οΈ Tags
macro macro-operators intermediate solved
βοΈ Related PME Features
- Macro Editor
- Python Scripting
π¬ 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.