Post #686: ![](https://blenderartists.org/user_avatar/blenderartists.org/vralsza/48/602988_

📋 Metadata

🏷️ Tags

v1-18-8 pie-menu hotkeys intermediate solved

  • Pie Menu Editor
  • Python Scripting
  • Custom menu commands

💬 Content

Vralsza:

Certain menu toggles just show up as “ bpy.data.screens[“Blahblahblah”].(null) = True ” (or similarly) when added to pie menus. They also show up like this in the command output area above the Blender info panel bar.
Is there a way to get the actual command for use with PME?

I’m trying to fix this issue for Blender 2.79.
If you know Python you can find actual command of the button in Blender’s Text Editor by pressing RMB on that button Edit Source.

a_guy73:

I’m trying to work out how to access the settings from the grease pencil “stroke quality” panel but haven’t had any luck. I already have a button to trigger “draw” but I’m trying to create another button that will prepare grease pencil to draw with these settings:

bpy.context.scene.pen_smooth_steps = 3; bpy.context.scene.pen_smooth_factor = 0.6; bpy.context.scene.pen_subdivision_steps = 3

how do I build the command for that?

Looks like Blender generates wrong commands. Use this code:

bpy.context.active_gpencil_brush.pen_smooth_steps = 3; bpy.context.active_gpencil_brush.pen_smooth_factor = 0.6; bpy.context.active_gpencil_brush.pen_subdivision_steps = 3

draguu:

everything was working well earlier ,
i have 8 pie button in that menu but now other 4 are hide behind those 4 buttons
any idea why it is happening ?

Please export and pm me this menu.


🔗 View on Blender Artists