Post #4469: The exec_default has to do more with how blender calls operators, the default mo

📋 Metadata

🏷️ Tags

python-scripting intermediate

  • Python Scripting
  • Macro Editor

💬 Content

The exec_default has to do more with how blender calls operators, the default mode invokes “the full” operator sor of speak, but if you have multiple in succession you have to use exec_default that way blender “directly” executes the operator.

For example:

bpy.ops.transform.translate(value=(2.0, 2.0, 2.0))

This one moves the object but you stay in the move operation

bpy.ops.transform.translate('EXEC_DEFAULT', True, value=(2.0, 2.0, 2.0))

This one just moves the object an nothing else

Adam_Szalai:

It’s because it’s not logical or just because it is not working like this, but it should? :slight_smile:

Is not working like that, or it starts from the first slot or it just cycles to the next with “remember state” on.


❤️ 1 likes


🔗 View on Blender Artists