How add selector to Parameter Interface?

   3833   2   4
User Avatar
Member
58 posts
Joined: July 2013
Offline
Hello!
How i can add arrow like this for my interface parameter?
Edited by Danil Shaposhnikov - Nov. 14, 2017 13:58:04

Attachments:
hou01.jpg (9.2 KB)

User Avatar
Member
1743 posts
Joined: March 2012
Offline
In the Type Properties dialog, select the parameter you'd like to add the button to, and under the Action Button tab, you can add something like:

import soputils
kwargs['geometrytype'] = hou.geometryType.Primitives
kwargs['inputindex'] = 0
soputils.selectGroupParm(kwargs)

On the Parameter tab, you might or might not also need to add 3 entries in the Tags table (where the last entry's text is multiple lines). It might or might not be automatically filled in if you just fill in the Action Button tab, (I'm not an expert on that front).

script_action_icon    BUTTONS_reselect
script_action_help Select geometry from an available viewport.
script_action import soputils
kwargs['geometrytype'] = hou.geometryType.Primitives
kwargs['inputindex'] = 0
soputils.selectGroupParm(kwargs)
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
58 posts
Joined: July 2013
Offline
ndickson
In the Type Properties dialog, select the parameter you'd like to add the button to, and under the Action Button tab, you can add something like:

import soputils
kwargs['geometrytype'] = hou.geometryType.Primitives
kwargs['inputindex'] = 0
soputils.selectGroupParm(kwargs)

On the Parameter tab, you might or might not also need to add 3 entries in the Tags table (where the last entry's text is multiple lines). It might or might not be automatically filled in if you just fill in the Action Button tab, (I'm not an expert on that front).

script_action_icon    BUTTONS_reselect
script_action_help Select geometry from an available viewport.
script_action import soputils
kwargs['geometrytype'] = hou.geometryType.Primitives
kwargs['inputindex'] = 0
soputils.selectGroupParm(kwargs)

Thank you very much.
  • Quick Links