mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Use Houdini's values directly
This commit is contained in:
parent
0df955c2fc
commit
a93d2b9c99
1 changed files with 4 additions and 19 deletions
|
|
@ -633,23 +633,8 @@ def evalParmNoFrame(node, parm, pad_character="#"):
|
||||||
|
|
||||||
def get_color_management_preferences():
|
def get_color_management_preferences():
|
||||||
"""Get default OCIO preferences"""
|
"""Get default OCIO preferences"""
|
||||||
data = {
|
return {
|
||||||
"config": hou.Color.ocio_configPath()
|
"config": hou.Color.ocio_configPath(),
|
||||||
|
"display": hou.Color.ocio_defaultDisplay(),
|
||||||
|
"view": hou.Color.ocio_defaultView()
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get default display and view from OCIO
|
|
||||||
display = hou.Color.ocio_defaultDisplay()
|
|
||||||
disp_regex = re.compile(r"^(?P<name>.+-)(?P<display>.+)$")
|
|
||||||
disp_match = disp_regex.match(display)
|
|
||||||
|
|
||||||
view = hou.Color.ocio_defaultView()
|
|
||||||
view_regex = re.compile(r"^(?P<name>.+- )(?P<view>.+)$")
|
|
||||||
view_match = view_regex.match(view)
|
|
||||||
data.update({
|
|
||||||
"display": disp_match.group("display"),
|
|
||||||
"view": view_match.group("view")
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
return data
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue