Post #1395: Hey roaoao,
📋 Metadata
- Author: Zimlorog
- Date: 2018-05-12 00:37:17
- Type:
question - Quality Score: 7/10
- Replies (1): post_01397
🏷️ Tags
v1-15-1 popup-dialog pie-menu python-scripting intermediate unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Popup Dialog Editor
- Python Scripting
💬 Content
Hey roaoao,
Blender 2.79b / PME 1.15.1
I’m wanting to make some custom Popup Dialogues to better organize a few of the built-in 3D Viewport Pie Menus. Basically a pie menu that opens into multiple Popup Dialogues. However, when I try to add the following code (from the pie menu tooltip) to one of the popup buttons, it says “invalid syntax”.
Example:
bpy.ops.align.2xyz(axis=‘0’)
Now I took a look at the ‘pie_align_menu.py’ and it has different commands. But when I activate it via the pie menu, that’s the command that shows up in the Info Window.
But now I’m wondering if I need to call one of the operators in the script, for example this is the above command’s bl_idname = align.2xyz
So would I need to call this, then add at the end add code for a specific axis?
align.2xyz(axis=‘0’) doesn’t work, but something like this?