wrong divider on colour settings

This commit is contained in:
Milan Kolar 2021-06-01 00:30:08 +02:00
parent 295468f585
commit c6960036ce
9 changed files with 27 additions and 27 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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(

View file

@ -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(

View file

@ -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)

View file

@ -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