Post #2334: Hi raorao again about def exec default i have problem i hope you can help me

📋 Metadata

🏷️ Tags

macro intermediate unsolved

  • Macro Editor
  • Python Scripting

💬 Content

Hi raorao again about def exec default i have problem i hope you can help me

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 )

bpy.ops.transform.rotate(value=0, orient_axis='Z', orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', constraint_axis=(False, False, True), mirror=True, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False)

my attempt ( nothing is happening )

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