Hello!
How i can add arrow like this for my interface parameter?
How add selector to Parameter Interface?
3779 2 4- Danil Shaposhnikov
- Member
- 58 posts
- Joined: July 2013
- Offline
- neil_math_comp
- 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:
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).
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]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
- Danil Shaposhnikov
- 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