Is it possible to have multiple color_picker roles...?

34 views
Skip to first unread message

Rich Bobo

unread,
May 3, 2017, 11:54:20 AM5/3/17
to OpenColorIO Users
Hi,

I am starting to set up some custom OCIO config files. I'd like to be able to define more than one color_picking role so the user can pick from several color transforms. Is this possible? I'm doing this for Maya 2017. The color picker palettes in Maya have a Color Management checkbox at the bottom and my new color_picker role does show up in the dropdown selector. However, I can't figure out the right syntax to have a list appear in the dropdown - or if it's even possible...

Thanks for any help!

Rich

Rich Bobo

unread,
May 5, 2017, 9:17:09 AM5/5/17
to OpenColorIO Users
It appears that there can be only one color_picking role available per config file:

"If you are using an OCIO configuration file that defines the color_picking role, that color space is the only one available."

Rich 

Sean Cooper

unread,
May 5, 2017, 1:15:16 PM5/5/17
to ocio-...@googlegroups.com
Yes, I believe that natively the applications would only look for the single required "color_picking" role, but this is more of a limitation of the base application's implementation rather than OCIO it's self. You can specify any number of uniquely identified roles, but you'd have have to add support for it yourself in applications that don't provide that feature out of the box.

--
You received this message because you are subscribed to the Google Groups "OpenColorIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocio-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fnordware

unread,
May 5, 2017, 3:21:09 PM5/5/17
to OpenColorIO Users
A role is just an alias for another color space. As a result, a role named "color_picking" can only map to one specific color space.

But you can define as many roles as you like, maybe "color_picking_log", "color_picking_linear" or whatever. OpenColorTypes.h defines 9 standard roles, but you can do whatever you want if the application supports it.
Reply all
Reply to author
Forward
0 new messages