Inheritance |
|
Methods ¶
label()
→ str
Returns this radial menu item’s label.
setLabel()
Sets this radial menu item’s label.
icon()
→ str
Returns this radial menu item’s icon.
setIcon()
Sets this radial menu item’s icon.
check()
→ str
Returns a Python expression used to determine the radial menu item’s checked state.
setCheck()
Sets the Python expression used to determine the radial menu item’s checked state.
script()
→ str
Returns Python code that will be run when the radial menu item is activated.
setScript()
Sets the Python code that will be run when the radial menu item is activated.
shortcut()
→ str
Returns a string description of the shortcut for selecting this radial menu item.
setShortcut()
Sets the shortcut for selecting this radial menu item.
setActionCallback()
Sets the callback that will be used this menu item is selected.
For dynamic menus (i.e., self.isSubmenu()
must be True
),
radialmenu.setRadialMenu()
may be called in side the function.
Alternatively, either hou.ui.injectRadialItem or
hou.ui.injectRadialMenu should be called to dynamically
populate the menu.
Note that this is only applicable to temporary items created via hou.ui.createRadialItem. For registered menu items, the script text will be used.
setCheckCallback()
Sets the callback to determine the item’s checked state. This is only
used if the item is an action (i.e., self.isSubmenu()
returns False
).
Note that this is only applicable to temporary items created via hou.ui.createRadialItem. For registered menu items, the script text will be used.
Methods from hou.RadialItem ¶
type()
→ hou.radialItemType
Returns this radial menu item’s type.
destroy()
This method is deprecated, and it has no effect. To remove an item from a submenu, use hou.ui.RadialSubmenu.remove instead. To unregister a top-level menu, use hou.ui.RadialMenu.destroy.