📋 Metadata
- Author: roaoao
- Date: 2016-09-23 07:43:29
- Type:
answer - Reply to: post_00350
💬 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.