mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
wrong divider on colour settings
This commit is contained in:
parent
295468f585
commit
c6960036ce
9 changed files with 27 additions and 27 deletions
|
|
@ -81,9 +81,9 @@ class AssProxyLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
|||
if c is not None:
|
||||
cmds.setAttr(groupName + ".useOutlinerColor", 1)
|
||||
cmds.setAttr(groupName + ".outlinerColor",
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
self[:] = nodes
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ class GpuCacheLoader(api.Loader):
|
|||
if c is not None:
|
||||
cmds.setAttr(root + ".useOutlinerColor", 1)
|
||||
cmds.setAttr(root + ".outlinerColor",
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
# Create transform with shape
|
||||
|
|
|
|||
|
|
@ -86,9 +86,9 @@ class ReferenceLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
|||
if c is not None:
|
||||
groupNode.useOutlinerColor.set(1)
|
||||
groupNode.outlinerColor.set(
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
self[:] = newNodes
|
||||
|
|
|
|||
|
|
@ -62,9 +62,9 @@ class LoadVDBtoRedShift(api.Loader):
|
|||
if c is not None:
|
||||
cmds.setAttr(root + ".useOutlinerColor", 1)
|
||||
cmds.setAttr(root + ".outlinerColor",
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
# Create VR
|
||||
|
|
|
|||
|
|
@ -55,9 +55,9 @@ class LoadVDBtoVRay(api.Loader):
|
|||
if c is not None:
|
||||
cmds.setAttr(root + ".useOutlinerColor", 1)
|
||||
cmds.setAttr(root + ".outlinerColor",
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
# Create VR
|
||||
|
|
|
|||
|
|
@ -74,9 +74,9 @@ class VRayProxyLoader(api.Loader):
|
|||
if c is not None:
|
||||
cmds.setAttr("{0}.useOutlinerColor".format(group_node), 1)
|
||||
cmds.setAttr("{0}.outlinerColor".format(group_node),
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
return containerise(
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ class VRaySceneLoader(api.Loader):
|
|||
if c is not None:
|
||||
cmds.setAttr("{0}.useOutlinerColor".format(group_node), 1)
|
||||
cmds.setAttr("{0}.outlinerColor".format(group_node),
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
return containerise(
|
||||
|
|
|
|||
|
|
@ -66,9 +66,9 @@ class YetiCacheLoader(api.Loader):
|
|||
if c is not None:
|
||||
cmds.setAttr(group_name + ".useOutlinerColor", 1)
|
||||
cmds.setAttr(group_name + ".outlinerColor",
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
|
||||
nodes.append(group_node)
|
||||
|
|
|
|||
|
|
@ -84,9 +84,9 @@ class YetiRigLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
|||
if c is not None:
|
||||
cmds.setAttr(groupName + ".useOutlinerColor", 1)
|
||||
cmds.setAttr(groupName + ".outlinerColor",
|
||||
(float(c[0])/256),
|
||||
(float(c[1])/256),
|
||||
(float(c[2])/256)
|
||||
(float(c[0])/255),
|
||||
(float(c[1])/255),
|
||||
(float(c[2])/255)
|
||||
)
|
||||
self[:] = nodes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue