ocio
Helper functions to apply OCIO colorspace settings on groups.
This tries to set the relevant OCIO settings on the group's look and render pipeline similar to what the OpenColorIO Basic Color Management package does in OpenRV through its ocio_source_setup
python file.
This assumes that the OpenColorIO Basic Color Management package of RV is both installed and loaded.
OCIONotActiveForGroup
Bases: RuntimeError
Error raised when OCIO is not enabled on the group node.
Source code in client/ayon_openrv/api/ocio.py
20 21 |
|
get_group_ocio_file_node(group)
Return OCIOFile node from source group
Source code in client/ayon_openrv/api/ocio.py
31 32 33 34 35 |
|
get_group_ocio_look_node(group)
Return OCIOLook node from source group
Source code in client/ayon_openrv/api/ocio.py
24 25 26 27 28 |
|
set_current_ocio_active_state(state)
Set the OCIO state for the currently active source.
This is a hacky workaround to enable/disable the OCIO active state for a source since it appears to be that there's no way to explicitly trigger this callback from the ocio_source_setup.OCIOSourceSetupMode
instance which does these changes.
Source code in client/ayon_openrv/api/ocio.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
set_group_ocio_active_state(group, state)
Set the OCIO state for the 'currently active source'.
This is a hacky workaround to enable/disable the OCIO active state for a source since it appears to be that there's no way to explicitly trigger this callback from the ocio_source_setup.OCIOSourceSetupMode
instance which does these changes.
Source code in client/ayon_openrv/api/ocio.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|
set_group_ocio_colorspace(group, colorspace)
Set the group's OCIOFile node ocio.inColorSpace property.
This only works if OCIO is already 'active' for the group. T
Source code in client/ayon_openrv/api/ocio.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|