Context Options Python List

   2258   1   0
User Avatar
Member
7 posts
Joined: Feb. 2009
Offline
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.

Attachments:
IMG_4308.jpg (1.9 MB)

User Avatar
Member
112 posts
Joined: Oct. 2011
Offline
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"))
Pipeline @ RISE Visual Effects Studios
  • Quick Links