mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
simpifiy the product type name
This commit is contained in:
parent
ae82fc1d66
commit
3089c59c3f
6 changed files with 13 additions and 13 deletions
|
|
@ -65,7 +65,7 @@ class CollectResourcesPath(pyblish.api.InstancePlugin):
|
|||
"xgen",
|
||||
"yeticacheUE",
|
||||
"tycache",
|
||||
"ornatrixRig"
|
||||
"OxRig"
|
||||
]
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -6,18 +6,18 @@ from ayon_maya.api import (
|
|||
)
|
||||
|
||||
|
||||
class CreateOrnatrixRig(plugin.MayaCreator):
|
||||
class CreateOxRig(plugin.MayaCreator):
|
||||
"""Output for Ornatrix nodes"""
|
||||
|
||||
identifier = "io.openpype.creators.maya.ornatrixrig"
|
||||
identifier = "io.openpype.creators.maya.OxRig"
|
||||
label = "Ornatrix Rig"
|
||||
product_type = "ornatrixRig"
|
||||
product_type = "OxRig"
|
||||
icon = "usb"
|
||||
|
||||
def create(self, product_name, instance_data, pre_create_data):
|
||||
|
||||
with lib.undo_chunk():
|
||||
instance = super(CreateOrnatrixRig, self).create(product_name,
|
||||
instance = super(CreateOxRig, self).create(product_name,
|
||||
instance_data,
|
||||
pre_create_data)
|
||||
instance_node = instance.get("instance_node")
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ from ayon_core.pipeline.create import CreateContext
|
|||
from ayon_maya.api import lib, plugin
|
||||
|
||||
|
||||
class OrnatrixRigLoader(plugin.ReferenceLoader):
|
||||
class OxRigLoader(plugin.ReferenceLoader):
|
||||
"""This loader will load Ornatix rig."""
|
||||
|
||||
product_types = {"ornatrixRig"}
|
||||
product_types = {"OxRig"}
|
||||
representations = {"ma"}
|
||||
|
||||
label = "Load Ornatrix Rig"
|
||||
|
|
@ -47,7 +47,7 @@ class OrnatrixRigLoader(plugin.ReferenceLoader):
|
|||
groupName=group_name
|
||||
)
|
||||
|
||||
color = plugin.get_load_color_for_product_type("ornatrixRig")
|
||||
color = plugin.get_load_color_for_product_type("OxRig")
|
||||
if color is not None:
|
||||
red, green, blue = color
|
||||
cmds.setAttr(group_name + ".useOutlinerColor", 1)
|
||||
|
|
|
|||
|
|
@ -306,12 +306,12 @@ class CollectYetiRig(plugin.MayaInstancePlugin):
|
|||
return replaced
|
||||
|
||||
|
||||
class CollectOrnatrixRig(CollectYetiRig):
|
||||
class CollectOxRig(CollectYetiRig):
|
||||
"""Collect all information of the Ornatrix Rig"""
|
||||
|
||||
order = pyblish.api.CollectorOrder + 0.4
|
||||
label = "Collect Ornatrix Rig"
|
||||
families = ["ornatrixRig"]
|
||||
families = ["OxRig"]
|
||||
|
||||
def process(self, instance):
|
||||
assert "input_SET" in instance.data["setMembers"], (
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ from maya import cmds
|
|||
|
||||
|
||||
|
||||
class ExtractOrnatrixRig(plugin.MayaExtractorPlugin):
|
||||
class ExtractxRig(plugin.MayaExtractorPlugin):
|
||||
"""Extract the Ornatrix rig to a Maya Scene and write the Ornatrix rig data."""
|
||||
|
||||
label = "Extract Ornatrix Rig"
|
||||
families = ["ornatrixRig"]
|
||||
families = ["OxRig"]
|
||||
scene_type = "ma"
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class ColorsSetting(BaseSettingsModel):
|
|||
(99, 206, 220, 1.0), title="Yeti Cache:")
|
||||
yetiRig: ColorRGBA_uint8 = SettingsField(
|
||||
(0, 205, 125, 1.0), title="Yeti Rig:")
|
||||
ornatrixRig: ColorRGBA_uint8 = SettingsField(
|
||||
OxRig: ColorRGBA_uint8 = SettingsField(
|
||||
(206, 234, 195, 1.0), title="Ornatrix Rig:")
|
||||
# model: ColorRGB_float = SettingsField(
|
||||
# (0.82, 0.52, 0.12), title="Model:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue