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
βοΈ Related PME Features
- 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?