Post #2336: Ma

📋 Metadata

🏷️ Tags

macro hotkeys advanced solved

  • Macro Editor
  • Python Scripting

💬 Content

MatsuikoHiroka:

i like to create a Macro Transform - Rotate
with Z-AXIS , 0 degree without entering modal so i can combine it with re-last

i tried this codes

NO DEFAULT EXEC ( debug mode recorded , it only enters modal mode doesnt enter the 0 value automatically )

PME/Blender ignores 'EXEC_DEFAULT' value in macro operators. Will try to fix that.
Surrounding the code with parentheses should help.

(bpy.ops.transform.rotate('EXEC_DEFAULT', True, value=(0.0, 0.0, 1.0), orient_axis='Z', orient_type='GLOBAL', orient_matrix_type='GLOBAL', constraint_axis=[False, False, True]))

🔗 View on Blender Artists