Post #4658: Hi guys,

πŸ“‹ Metadata

  • Author: keyframe_L
  • Date: 2023-04-01 16:10:15
  • Type: question
  • Quality Score: 6/10
  • Replies (1): post_04659

🏷️ Tags

pie-menu python-scripting intermediate unsolved

  • Pie Menu Editor
  • Python Scripting

πŸ’¬ Content

Hi guys,

How can I set it up so when I press a button it executes a python script?

I have this command assigned to a pie menu:

bpy.ops.transform.resize(value=(1, 1, 0), orient_type=β€˜GLOBAL’)

but when I select it in the pie menu it activates a scale tool behavior whereas when I execute this in the script editor it gives the desired outcome. Is there a way I can set it up in pie menu editor so it just executes it the same way script editor does?


πŸ”— View on Blender Artists