Post #4736: Guys, im trying to create some macos for node editor.

📋 Metadata

🏷️ Tags

v1-18-7 macro python-scripting intermediate unsolved

  • Macro Editor
  • Python Scripting

💬 Content

Guys, im trying to create some macos for node editor.
I select a few nodes, activate scale, type Y and 0. So basically align nodes horizontally.

But if i copy&past result from info panel:

bpy.ops.transform.resize(value=(1, 0, 1), orient_type=‘GLOBAL’, orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type=‘GLOBAL’, constraint_axis=(False, True, False), mirror=False, use_proportional_edit=False, proportional_edit_falloff=‘SMOOTH’, proportional_size=1, use_proportional_connected=False, use_proportional_projected=False, snap=False, snap_elements={}, use_snap_project=False, snap_target=‘CLOSEST’, use_snap_self=True, use_snap_edit=True, use_snap_nonedit=True, use_snap_selectable=False)

to pme i get the error then trying to run the macro:

Python: Traceback (most recent call last):
File “C:\Users\username\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\pie_menu_editor\operators.py”, line 2165, in invoke
return self.execute_menu(context, event)
File “C:\Users\username\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\pie_menu_editor\operators.py”, line 1974, in execute_menu
execute_macro(pm)
File “C:\Users\username\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\pie_menu_editor\macro_utils.py”, line 242, in execute_macro
_fill_props(props, pm)
File “C:\Users\username\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\pie_menu_editor\macro_utils.py”, line 210, in _fill_props
props[sub_tp] = eval(“dict(%s)” % args)
File “”, line 1, in
NameError: name ‘Matrix’ is not defined

What im doing wrong? Im trying this on Blender 3.5.0 with PME 1.18.7


🔗 View on Blender Artists