Post #351: ![](https://blenderartists.org/user_avatar/blenderartists.org/rhyging5/48/725092

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2016-09-23 07:43:29
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00350

🏷️ Tags

pie-menu customization beginner

  • Pie Menu Editor
  • Custom tab
  • Command execution
  • UI scaling

πŸ’¬ Content

rhyging5:

is possible to set the lenght of a label button?

Yes, it’s possible.
E.g. the code for Shade Smooth command (in Command tab) is:

bpy.ops.object.shade_smooth()

You need to copy that code and use it in Custom tab:

row = L.row(True); row.scale_x = 1.5; row.operator("wm.pme_user_command_exec", text, icon=icon, icon_value=icon_value).cmd = "bpy.ops.object.shade_smooth()"

Usescale_x value to change the size of the button.


πŸ”— View on Blender Artists