📋 Metadata

💬 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.


🔗 View on Blender Artists