Search - User list
Full Version: Context Options Python List
Root » Solaris and Karma » Context Options Python List
nbjsargent
I am looking for advice on how to create a context options list using Houdini Python HOM.

For example I'm trying to create in python a context option like:

Label: Shot
Type: Int Menu
Value : label Shot01 value: 1
Value : label Shot02 value: 2


and so on?
I've attached a screenshot as reference.

Any help would be appreciated.
simon_o
Look into hou.contextOptionConfig() ..on how to format the ui configuration and hou.setContextOptionConfig() to actually apply it.

To be able to set the setContextOptionConfig, you first need to create the context option itself (for example via hou.setContextOption("shot", "somevalue"))
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB