cleaning up family names

This commit is contained in:
Milan Kolar 2018-10-18 13:59:58 +02:00
parent 7bd49bfd4e
commit 7b9ea27f39
164 changed files with 1542 additions and 383 deletions

View file

@ -24,9 +24,9 @@ def install():
pyblish.register_callback("instanceToggled", on_pyblish_instance_toggled)
# Disable all families except for the ones we explicitly want to see
family_states = ["studio.imagesequence",
"studio.camera",
"studio.pointcache"]
family_states = ["imagesequence",
"camera",
"pointcache"]
avalon.data["familiesStateDefault"] = False
avalon.data["familiesStateToggled"] = family_states

View file

@ -41,7 +41,7 @@ def install():
log.info("Overriding existing event 'taskChanged'")
log.info("Setting default family states for loader..")
avalon.data["familiesStateToggled"] = ["studio.imagesequence"]
avalon.data["familiesStateToggled"] = ["imagesequence"]
def on_init(*args):

View file

@ -52,7 +52,7 @@ def install():
override_event("taskChanged", on_task_changed)
log.info("Setting default family states for loader..")
avalon.data["familiesStateToggled"] = ["studio.imagesequence"]
avalon.data["familiesStateToggled"] = ["imagesequence"]
def uninstall():

View file

@ -1360,7 +1360,7 @@ def assign_look(nodes, subset="lookDefault"):
version = io.find_one({"parent": subset_data['_id'],
"type": "version",
"data.families":
{"$in": ["studio.look"]}
{"$in": ["look"]}
},
sort=[("name", -1)],
projection={"_id": True, "name": True})

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,7 @@ class CreateTiffSaver(avalon.api.Creator):
name = "tiffDefault"
label = "Create Tiff Saver"
hosts = ["fusion"]
family = "studio.saver"
family = "saver"
def process(self):

View file

@ -8,11 +8,11 @@ from avalon import api
class FusionSetFrameRangeLoader(api.Loader):
"""Specific loader of Alembic for the avalon.animation family"""
families = ["studio.animation",
"studio.camera",
"studio.imagesequence",
"studio.yeticache",
"studio.pointcache"]
families = ["animation",
"camera",
"imagesequence",
"yeticache",
"pointcache"]
representations = ["*"]
label = "Set frame range"
@ -41,11 +41,11 @@ class FusionSetFrameRangeLoader(api.Loader):
class FusionSetFrameRangeWithHandlesLoader(api.Loader):
"""Specific loader of Alembic for the avalon.animation family"""
families = ["studio.animation",
"studio.camera",
"studio.imagesequence",
"studio.yeticache",
"studio.pointcache"]
families = ["animation",
"camera",
"imagesequence",
"yeticache",
"pointcache"]
representations = ["*"]
label = "Set frame range (with handles)"

View file

@ -113,7 +113,7 @@ def loader_shift(loader, frame, relative=True):
class FusionLoadSequence(api.Loader):
"""Load image sequence into Fusion"""
families = ["studio.imagesequence"]
families = ["imagesequence"]
representations = ["*"]
label = "Load sequence"

View file

@ -76,8 +76,8 @@ class CollectInstances(pyblish.api.ContextPlugin):
"outputDir": os.path.dirname(path),
"ext": ext, # todo: should be redundant
"label": label,
"families": ["studio.saver"],
"family": "studio.saver",
"families": ["saver"],
"family": "saver",
"active": active,
"publish": active # backwards compatibility
})

View file

@ -13,7 +13,7 @@ class CollectFusionRenderMode(pyblish.api.InstancePlugin):
available tool does not visualize which render mode is set for the
current comp, please run the following line in the console (Py2)
comp.GetData("studio.rendermode")
comp.GetData("rendermode")
This will return the name of the current render mode as seen above under
Options.
@ -23,7 +23,7 @@ class CollectFusionRenderMode(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.4
label = "Collect Render Mode"
hosts = ["fusion"]
families = ["studio.saver"]
families = ["saver"]
def process(self, instance):
"""Collect all image sequence tools"""
@ -34,11 +34,11 @@ class CollectFusionRenderMode(pyblish.api.InstancePlugin):
raise RuntimeError("No comp previously collected, unable to "
"retrieve Fusion version.")
rendermode = comp.GetData("studio.rendermode") or "renderlocal"
rendermode = comp.GetData("rendermode") or "renderlocal"
assert rendermode in options, "Must be supported render mode"
self.log.info("Render mode: {0}".format(rendermode))
# Append family
family = "studio.saver.{0}".format(rendermode)
family = "saver.{0}".format(rendermode)
instance.data["families"].append(family)

View file

@ -11,7 +11,7 @@ class FusionIncrementCurrentFile(pyblish.api.ContextPlugin):
label = "Increment current file"
order = pyblish.api.IntegratorOrder + 9.0
hosts = ["fusion"]
families = ["studio.saver.deadline"]
families = ["saver.deadline"]
optional = True
def process(self, context):

View file

@ -32,7 +32,7 @@ class PublishImageSequence(pyblish.api.InstancePlugin):
order = pyblish.api.IntegratorOrder
label = "Publish Rendered Image Sequence(s)"
hosts = ["fusion"]
families = ["studio.saver.renderlocal"]
families = ["saver.renderlocal"]
def process(self, instance):
@ -55,7 +55,7 @@ class PublishImageSequence(pyblish.api.InstancePlugin):
"regex": regex,
"startFrame": instance.context.data["startFrame"],
"endFrame": instance.context.data["endFrame"],
"families": ["studio.imagesequence"],
"families": ["imagesequence"],
}
# Write metadata and store the path in the instance

View file

@ -14,7 +14,7 @@ class FusionRenderLocal(pyblish.api.InstancePlugin):
order = pyblish.api.ExtractorOrder
label = "Render Local"
hosts = ["fusion"]
families = ["studio.saver.renderlocal"]
families = ["saver.renderlocal"]
def process(self, instance):

View file

@ -7,7 +7,7 @@ class FusionSaveComp(pyblish.api.ContextPlugin):
label = "Save current file"
order = pyblish.api.ExtractorOrder - 0.49
hosts = ["fusion"]
families = ["studio.saver"]
families = ["saver"]
def process(self, context):

View file

@ -19,7 +19,7 @@ class FusionSubmitDeadline(pyblish.api.InstancePlugin):
label = "Submit to Deadline"
order = pyblish.api.IntegratorOrder
hosts = ["fusion"]
families = ["studio.saver.deadline"]
families = ["saver.deadline"]
def process(self, instance):

View file

@ -10,7 +10,7 @@ class ValidateBackgroundDepth(pyblish.api.InstancePlugin):
label = "Validate Background Depth 32 bit"
actions = [action.RepairAction]
hosts = ["fusion"]
families = ["studio.saver"]
families = ["saver"]
optional = True
@classmethod

View file

@ -8,7 +8,7 @@ class ValidateFusionCompSaved(pyblish.api.ContextPlugin):
order = pyblish.api.ValidatorOrder
label = "Validate Comp Saved"
families = ["studio.saver"]
families = ["saver"]
hosts = ["fusion"]
def process(self, context):

View file

@ -13,7 +13,7 @@ class ValidateCreateFolderChecked(pyblish.api.InstancePlugin):
order = pyblish.api.ValidatorOrder
actions = [action.RepairAction]
label = "Validate Create Folder Checked"
families = ["studio.saver"]
families = ["saver"]
hosts = ["fusion"]
@classmethod

View file

@ -14,7 +14,7 @@ class ValidateFilenameHasExtension(pyblish.api.InstancePlugin):
order = pyblish.api.ValidatorOrder
label = "Validate Filename Has Extension"
families = ["studio.saver"]
families = ["saver"]
hosts = ["fusion"]
def process(self, instance):

View file

@ -10,7 +10,7 @@ class ValidateSaverHasInput(pyblish.api.InstancePlugin):
order = pyblish.api.ValidatorOrder
label = "Validate Saver Has Input"
families = ["studio.saver"]
families = ["saver"]
hosts = ["fusion"]
@classmethod

View file

@ -6,7 +6,7 @@ class ValidateSaverPassthrough(pyblish.api.ContextPlugin):
order = pyblish.api.ValidatorOrder
label = "Validate Saver Passthrough"
families = ["studio.saver"]
families = ["saver"]
hosts = ["fusion"]
def process(self, context):

View file

@ -6,7 +6,7 @@ class ValidateUniqueSubsets(pyblish.api.InstancePlugin):
order = pyblish.api.ValidatorOrder
label = "Validate Unique Subsets"
families = ["studio.saver"]
families = ["saver"]
hosts = ["fusion"]
@classmethod

View file

@ -18,7 +18,7 @@ def open(filepath):
class PlayImageSequence(api.Loader):
"""Open Image Sequence with system default"""
families = ["studio.imagesequence"]
families = ["imagesequence"]
representations = ["*"]
label = "Play sequence"

View file

@ -37,9 +37,9 @@ class CollectDeadlineUser(pyblish.api.ContextPlugin):
hosts = ['maya', 'fusion', 'nuke']
families = [
"studio.renderlayer",
"studio.saver.deadline",
"studio.imagesequence"
"renderlayer",
"saver.deadline",
"imagesequence"
]

View file

@ -149,7 +149,7 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
raise RuntimeError("Invalid sequence")
# Get family from the data
families = data.get("families", ["studio.imagesequence"])
families = data.get("families", ["imagesequence"])
assert isinstance(families, (list, tuple)), "Must be iterable"
assert families, "Must have at least a single family"

View file

@ -23,19 +23,19 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
label = "Integrate Asset"
order = pyblish.api.IntegratorOrder
families = ["studio.animation",
"studio.camera",
"studio.imagesequence",
"studio.look",
"studio.mayaAscii",
"studio.model",
"studio.pointcache",
"studio.vdbcache",
"studio.setdress",
"studio.rig",
"studio.vrayproxy",
"studio.yetiRig",
"studio.yeticache"]
families = ["animation",
"camera",
"imagesequence",
"look",
"mayaAscii",
"model",
"pointcache",
"vdbcache",
"setdress",
"rig",
"vrayproxy",
"yetiRig",
"yeticache"]
def process(self, instance):

View file

@ -125,9 +125,9 @@ class SubmitDependentImageSequenceJobDeadline(pyblish.api.InstancePlugin):
hosts = ["fusion", "maya", "nuke"]
families = [
"studio.saver.deadline",
"studio.renderlayer",
"studio.imagesequence"
"saver.deadline",
"renderlayer",
"imagesequence"
]
def process(self, instance):
@ -173,7 +173,7 @@ class SubmitDependentImageSequenceJobDeadline(pyblish.api.InstancePlugin):
"regex": regex,
"startFrame": start,
"endFrame": end,
"families": ["studio.imagesequence"],
"families": ["imagesequence"],
# Optional metadata (for debugging)
"metadata": {
@ -190,7 +190,7 @@ class SubmitDependentImageSequenceJobDeadline(pyblish.api.InstancePlugin):
if data.get("extendFrames", False):
family = "studio.imagesequence"
family = "imagesequence"
override = data["overrideExistingFrame"]
# override = data.get("overrideExistingFrame", False)

View file

@ -11,7 +11,7 @@ class ValidateSequenceFrames(pyblish.api.InstancePlugin):
order = pyblish.api.ValidatorOrder
label = "Validate Sequence Frames"
families = ["studio.imagesequence"]
families = ["imagesequence"]
hosts = ["shell"]
def process(self, instance):

View file

@ -7,7 +7,7 @@ class CreateAlembicCamera(houdini.Creator):
name = "camera"
label = "Camera (Abc)"
family = "studio.camera"
family = "camera"
icon = "camera"
def __init__(self, *args, **kwargs):

View file

@ -6,7 +6,7 @@ class CreatePointCache(houdini.Creator):
name = "pointcache"
label = "Point Cache"
family = "studio.pointcache"
family = "pointcache"
icon = "gears"
def __init__(self, *args, **kwargs):

View file

@ -6,7 +6,7 @@ class CreateVDBCache(houdini.Creator):
name = "vbdcache"
label = "VDB Cache"
family = "studio.vdbcache"
family = "vdbcache"
icon = "cloud"
def __init__(self, *args, **kwargs):

View file

@ -6,9 +6,9 @@ from avalon.houdini import pipeline, lib
class AbcLoader(api.Loader):
"""Specific loader of Alembic for the avalon.animation family"""
families = ["studio.model",
"studio.animation",
"studio.pointcache"]
families = ["model",
"animation",
"pointcache"]
label = "Load Alembic"
representations = ["abc"]
order = -10

View file

@ -6,7 +6,7 @@ from avalon.houdini import pipeline, lib
class CameraLoader(api.Loader):
"""Specific loader of Alembic for the avalon.animation family"""
families = ["studio.camera"]
families = ["camera"]
label = "Load Camera (abc)"
representations = ["abc"]
order = -10

View file

@ -10,7 +10,7 @@ class CollectFrames(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder
label = "Collect Frames"
families = ["studio.vdbcache"]
families = ["vdbcache"]
def process(self, instance):

View file

@ -9,7 +9,7 @@ class ExtractAlembic(pype.api.Extractor):
order = pyblish.api.ExtractorOrder
label = "Extract Alembic"
hosts = ["houdini"]
families = ["studio.pointcache", "studio.camera"]
families = ["pointcache", "camera"]
def process(self, instance):

View file

@ -8,7 +8,7 @@ class ExtractVDBCache(pype.api.Extractor):
order = pyblish.api.ExtractorOrder + 0.1
label = "Extract VDB Cache"
families = ["studio.vdbcache"]
families = ["vdbcache"]
hosts = ["houdini"]
def process(self, instance):

View file

@ -17,7 +17,7 @@ class ValidateVDBInputNode(pyblish.api.InstancePlugin):
"""
order = pype.api.ValidateContentsOrder + 0.1
families = ["studio.vdbcache"]
families = ["vdbcache"]
hosts = ["houdini"]
label = "Validate Input Node (VDB)"

View file

@ -12,7 +12,7 @@ class ValidateAlembicInputNode(pyblish.api.InstancePlugin):
"""
order = pype.api.ValidateContentsOrder + 0.1
families = ["studio.pointcache"]
families = ["pointcache"]
hosts = ["houdini"]
label = "Validate Input Node (Abc)"

View file

@ -23,7 +23,7 @@ class ValidateAnimationSettings(pyblish.api.InstancePlugin):
order = pyblish.api.ValidatorOrder
label = "Validate Frame Settings"
families = ["studio.vdbcache"]
families = ["vdbcache"]
def process(self, instance):

View file

@ -12,7 +12,7 @@ class ValidateIntermediateDirectoriesChecked(pyblish.api.InstancePlugin):
"""
order = pype.api.ValidateContentsOrder
families = ["studio.pointcache']
families = ["pointcache']
hosts = ['houdini']
label = 'Create Intermediate Directories Checked'

View file

@ -9,7 +9,7 @@ class CreateAnimation(avalon.maya.Creator):
name = "animationDefault"
label = "Animation"
family = "studio.animation"
family = "animation"
icon = "male"
def __init__(self, *args, **kwargs):

View file

@ -8,7 +8,7 @@ class CreateCamera(avalon.maya.Creator):
name = "cameraDefault"
label = "Camera"
family = "studio.camera"
family = "camera"
icon = "video-camera"
def __init__(self, *args, **kwargs):

View file

@ -8,7 +8,7 @@ class CreateLook(avalon.maya.Creator):
name = "look"
label = "Look"
family = "studio.look"
family = "look"
icon = "paint-brush"
def __init__(self, *args, **kwargs):

View file

@ -6,5 +6,5 @@ class CreateMayaAscii(avalon.maya.Creator):
name = "mayaAscii"
label = "Maya Ascii"
family = "studio.mayaAscii"
family = "mayaAscii"
icon = "file-archive-o"

View file

@ -8,7 +8,7 @@ class CreateModel(avalon.maya.Creator):
name = "modelDefault"
label = "Model"
family = "studio.model"
family = "model"
icon = "cube"
def __init__(self, *args, **kwargs):

View file

@ -9,7 +9,7 @@ class CreatePointCache(avalon.maya.Creator):
name = "pointcache"
label = "Point Cache"
family = "studio.pointcache"
family = "pointcache"
icon = "gears"
def __init__(self, *args, **kwargs):

View file

@ -10,7 +10,7 @@ from avalon import api
class CreateRenderGlobals(avalon.maya.Creator):
label = "Render Globals"
family = "studio.renderglobals"
family = "renderglobals"
icon = "gears"
def __init__(self, *args, **kwargs):

View file

@ -8,7 +8,7 @@ class CreateRig(avalon.maya.Creator):
name = "rigDefault"
label = "Rig"
family = "studio.rig"
family = "rig"
icon = "wheelchair"
def process(self):

View file

@ -6,5 +6,5 @@ class CreateSetDress(avalon.maya.Creator):
name = "setdress"
label = "Set Dress"
family = "studio.setdress"
family = "setdress"
icon = "cubes"

View file

@ -8,7 +8,7 @@ class CreateVrayProxy(avalon.maya.Creator):
name = "vrayproxy"
label = "VRay Proxy"
family = "studio.vrayproxy"
family = "vrayproxy"
icon = "gears"
def __init__(self, *args, **kwargs):

View file

@ -9,7 +9,7 @@ class CreateYetiCache(avalon.maya.Creator):
name = "yetiDefault"
label = "Yeti Cache"
family = "studio.yeticache"
family = "yeticache"
icon = "pagelines"
def __init__(self, *args, **kwargs):

View file

@ -7,7 +7,7 @@ class CreateYetiRig(avalon.maya.Creator):
"""Output for procedural plugin nodes ( Yeti / XGen / etc)"""
label = "Yeti Rig"
family = "studio.yetiRig"
family = "yetiRig"
icon = "usb"
def process(self):

View file

@ -4,9 +4,9 @@ import pype.maya.plugin
class AbcLoader(pype.maya.plugin.ReferenceLoader):
"""Specific loader of Alembic for the avalon.animation family"""
families = ["studio.animation",
"studio.camera",
"studio.pointcache"]
families = ["animation",
"camera",
"pointcache"]
representations = ["abc"]
label = "Reference animation"

View file

@ -8,9 +8,9 @@ from avalon import api
class SetFrameRangeLoader(api.Loader):
"""Specific loader of Alembic for the avalon.animation family"""
families = ["studio.animation",
"studio.camera",
"studio.pointcache"]
families = ["animation",
"camera",
"pointcache"]
representations = ["abc"]
label = "Set frame range"
@ -42,9 +42,9 @@ class SetFrameRangeLoader(api.Loader):
class SetFrameRangeWithHandlesLoader(api.Loader):
"""Specific loader of Alembic for the avalon.animation family"""
families = ["studio.animation",
"studio.camera",
"studio.pointcache"]
families = ["animation",
"camera",
"pointcache"]
representations = ["abc"]
label = "Set frame range (with handles)"

View file

@ -4,8 +4,8 @@ import pype.maya.plugin
class AbcLoader(pype.maya.plugin.ReferenceLoader):
"""Specific loader of Alembic for the studio.animation family"""
families = ["studio.animation",
"studio.pointcache"]
families = ["animation",
"pointcache"]
label = "Reference animation"
representations = ["abc"]
order = -10

View file

@ -4,7 +4,7 @@ import pype.maya.plugin
class CameraLoader(pype.maya.plugin.ReferenceLoader):
"""Specific loader of Alembic for the studio.camera family"""
families = ["studio.camera"]
families = ["camera"]
label = "Reference camera"
representations = ["abc", "ma"]
order = -10

View file

@ -4,7 +4,7 @@ import pype.maya.plugin
class LookLoader(pype.maya.plugin.ReferenceLoader):
"""Specific loader for lookdev"""
families = ["studio.look"]
families = ["look"]
representations = ["ma"]
label = "Reference look"

View file

@ -4,7 +4,7 @@ import pype.maya.plugin
class MayaAsciiLoader(pype.maya.plugin.ReferenceLoader):
"""Load the model"""
families = ["studio.mayaAscii"]
families = ["mayaAscii"]
representations = ["ma"]
label = "Reference Maya Ascii"

View file

@ -5,7 +5,7 @@ import pype.maya.plugin
class ModelLoader(pype.maya.plugin.ReferenceLoader):
"""Load the model"""
families = ["studio.model"]
families = ["model"]
representations = ["ma"]
label = "Reference Model"
@ -37,7 +37,7 @@ class ModelLoader(pype.maya.plugin.ReferenceLoader):
class GpuCacheLoader(api.Loader):
"""Load model Alembic as gpuCache"""
families = ["studio.model"]
families = ["model"]
representations = ["abc"]
label = "Import Gpu Cache"

View file

@ -11,7 +11,7 @@ class RigLoader(pype.maya.plugin.ReferenceLoader):
"""
families = ["studio.rig"]
families = ["rig"]
representations = ["ma"]
label = "Reference rig"
@ -62,7 +62,7 @@ class RigLoader(pype.maya.plugin.ReferenceLoader):
cmds.select([output, controls] + roots, noExpand=True)
api.create(name=namespace,
asset=asset,
family="studio.animation",
family="animation",
options={"useSelection": True},
data={"dependencies": dependency})

View file

@ -3,7 +3,7 @@ from avalon import api
class SetDressLoader(api.Loader):
families = ["studio.setdress"]
families = ["setdress"]
representations = ["json"]
label = "Load Set Dress"

View file

@ -4,7 +4,7 @@ from avalon import api
class LoadVDBtoRedShift(api.Loader):
"""Load OpenVDB in a Redshift Volume Shape"""
families = ["studio.vdbcache"]
families = ["vdbcache"]
representations = ["vdb"]
label = "Load VDB to RedShift"

View file

@ -3,7 +3,7 @@ from avalon import api
class LoadVDBtoVRay(api.Loader):
families = ["studio.vdbcache"]
families = ["vdbcache"]
representations = ["vdb"]
label = "Load VDB to VRay"

View file

@ -7,7 +7,7 @@ import maya.cmds as cmds
class VRayProxyLoader(api.Loader):
"""Load VRayMesh proxy"""
families = ["studio.vrayproxy"]
families = ["vrayproxy"]
representations = ["vrmesh"]
label = "Import VRay Proxy"

View file

@ -13,7 +13,7 @@ from pype.maya import lib
class YetiCacheLoader(api.Loader):
families = ["studio.yeticache", "studio.yetiRig"]
families = ["yeticache", "yetiRig"]
representations = ["fur"]
label = "Load Yeti Cache"

View file

@ -3,7 +3,7 @@ import pype.maya.plugin
class YetiRigLoader(pype.maya.plugin.ReferenceLoader):
families = ["studio.yetiRig"]
families = ["yetiRig"]
representations = ["ma"]
label = "Load Yeti Rig"

View file

@ -16,7 +16,7 @@ class CollectAnimationOutputGeometry(pyblish.api.InstancePlugin):
"""
order = pyblish.api.CollectorOrder + 0.4
families = ["studio.animation"]
families = ["animation"]
label = "Collect Animation Output Geometry"
hosts = ["maya"]

View file

@ -17,7 +17,7 @@ class CollectMayaHistory(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.1
hosts = ["maya"]
label = "Maya History"
families = ["studio.rig"]
families = ["rig"]
verbose = False
def process(self, instance):

View file

@ -203,7 +203,7 @@ class CollectLook(pyblish.api.InstancePlugin):
"""
order = pyblish.api.CollectorOrder + 0.4
families = ["studio.look"]
families = ["look"]
label = "Collect Look"
hosts = ["maya"]

View file

@ -17,7 +17,7 @@ class CollectModelData(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.499
label = 'Collect Model Data'
families = ["studio.model"]
families = ["model"]
def process(self, instance):
# Extract only current frame (override)

View file

@ -28,7 +28,7 @@ class CollectRenderLayerAOVS(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.01
label = "Render Elements / AOVs"
hosts = ["maya"]
families = ["studio.renderlayer"]
families = ["renderlayer"]
def process(self, instance):

View file

@ -74,7 +74,7 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin):
# instance subset
"family": "Render Layers",
"families": ["studio.renderlayer"],
"families": ["renderlayer"],
"asset": asset,
"time": api.time(),
"author": context.data["user"],

View file

@ -25,13 +25,14 @@ class CollectSetDress(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.49
label = "Set Dress"
families = ["studio.setdress"]
families = ["setdress"]
def process(self, instance):
# Find containers
containers = avalon.ls()
# Get all content from the instance
instance_lookup = set(cmds.ls(instance, type="transform", long=True))
data = defaultdict(list)
@ -40,6 +41,7 @@ class CollectSetDress(pyblish.api.InstancePlugin):
for container in containers:
root = lib.get_container_transforms(container, root=True)
self.log.debug(root)
if not root or root not in instance_lookup:
continue

View file

@ -28,7 +28,7 @@ class CollectYetiCache(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.45
label = "Collect Yeti Cache"
families = ["studio.yetiRig", "studio.yeticache"]
families = ["yetiRig", "yeticache"]
hosts = ["maya"]
tasks = ["animation", "fx"]

View file

@ -21,7 +21,7 @@ class CollectYetiRig(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.4
label = "Collect Yeti Rig"
families = ["studio.yetiRig"]
families = ["yetiRig"]
hosts = ["maya"]
def process(self, instance):

View file

@ -17,7 +17,7 @@ class ExtractColorbleedAnimation(pype.api.Extractor):
label = "Extract Animation"
hosts = ["maya"]
families = ["studio.animation"]
families = ["animation"]
def process(self, instance):

View file

@ -18,7 +18,7 @@ class ExtractCameraAlembic(pype.api.Extractor):
label = "Camera (Alembic)"
hosts = ["maya"]
families = ["studio.camera"]
families = ["camera"]
def process(self, instance):

View file

@ -83,7 +83,7 @@ class ExtractCameraMayaAscii(pype.api.Extractor):
label = "Camera (Maya Ascii)"
hosts = ["maya"]
families = ["studio.camera"]
families = ["camera"]
def process(self, instance):

View file

@ -22,7 +22,7 @@ class ExtractLook(pype.api.Extractor):
label = "Extract Look (Maya ASCII + JSON)"
hosts = ["maya"]
families = ["studio.look"]
families = ["look"]
order = pyblish.api.ExtractorOrder + 0.2
def process(self, instance):

View file

@ -15,7 +15,7 @@ class ExtractMayaAsciiRaw(pype.api.Extractor):
label = "Maya ASCII (Raw)"
hosts = ["maya"]
families = ["studio.mayaAscii"]
families = ["mayaAscii"]
def process(self, instance):

View file

@ -24,7 +24,7 @@ class ExtractModel(pype.api.Extractor):
label = "Model (Maya ASCII)"
hosts = ["maya"]
families = ["studio.model"]
families = ["model"]
def process(self, instance):

View file

@ -17,8 +17,8 @@ class ExtractColorbleedAlembic(pype.api.Extractor):
label = "Extract Pointcache (Alembic)"
hosts = ["maya"]
families = ["studio.pointcache",
"studio.model"]
families = ["pointcache",
"model"]
def process(self, instance):

View file

@ -11,7 +11,7 @@ class ExtractColorbleedRig(pype.api.Extractor):
label = "Extract Rig (Maya ASCII)"
hosts = ["maya"]
families = ["studio.rig"]
families = ["rig"]
def process(self, instance):

View file

@ -18,7 +18,7 @@ class ExtractSetDress(pype.api.Extractor):
label = "Extract Set Dress"
hosts = ["maya"]
families = ["studio.setdress"]
families = ["setdress"]
def process(self, instance):

View file

@ -16,7 +16,7 @@ class ExtractVRayProxy(pype.api.Extractor):
label = "VRay Proxy (.vrmesh)"
hosts = ["maya"]
families = ["studio.vrayproxy"]
families = ["vrayproxy"]
def process(self, instance):

View file

@ -16,7 +16,7 @@ class ExtractYetiCache(pype.api.Extractor):
label = "Extract Yeti Cache"
hosts = ["maya"]
families = ["studio.yetiRig", "studio.yeticache"]
families = ["yetiRig", "yeticache"]
def process(self, instance):

View file

@ -93,7 +93,7 @@ class ExtractYetiRig(pype.api.Extractor):
label = "Extract Yeti Rig"
hosts = ["maya"]
families = ["studio.yetiRig"]
families = ["yetiRig"]
def process(self, instance):

View file

@ -11,7 +11,7 @@ class IncrementCurrentFileDeadline(pyblish.api.ContextPlugin):
label = "Increment current file"
order = pyblish.api.IntegratorOrder + 9.0
hosts = ["maya"]
families = ["studio.renderlayer"]
families = ["renderlayer"]
optional = True
def process(self, context):

View file

@ -9,7 +9,7 @@ class SaveCurrentScene(pyblish.api.ContextPlugin):
label = "Save current file"
order = pyblish.api.IntegratorOrder - 0.49
hosts = ["maya"]
families = ["studio.renderlayer"]
families = ["renderlayer"]
def process(self, context):
import maya.cmds as cmds

View file

@ -99,7 +99,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
label = "Submit to Deadline"
order = pyblish.api.IntegratorOrder
hosts = ["maya"]
families = ["studio.renderlayer"]
families = ["renderlayer"]
def process(self, instance):

View file

@ -13,7 +13,7 @@ class ValidateAnimationContent(pyblish.api.InstancePlugin):
order = pype.api.ValidateContentsOrder
hosts = ["maya"]
families = ["studio.animation"]
families = ["animation"]
label = "Animation Content"
actions = [pype.maya.action.SelectInvalidAction]

View file

@ -17,7 +17,7 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
"""
order = pype.api.ValidateContentsOrder
families = ["studio.animation', "studio.pointcache"]
families = ["animation', "pointcache"]
hosts = ['maya']
label = 'Animation Out Set Related Node Ids'
actions = [pype.maya.action.SelectInvalidAction, pype.api.RepairAction]

View file

@ -15,7 +15,7 @@ class ValidateCameraAttributes(pyblish.api.InstancePlugin):
"""
order = pype.api.ValidateContentsOrder
families = ["studio.camera']
families = ["camera']
hosts = ['maya']
label = 'Camera Attributes'
actions = [pype.maya.action.SelectInvalidAction]

View file

@ -16,7 +16,7 @@ class ValidateCameraContents(pyblish.api.InstancePlugin):
"""
order = pype.api.ValidateContentsOrder
families = ["studio.camera']
families = ["camera']
hosts = ['maya']
label = 'Camera Contents'
actions = [pype.maya.action.SelectInvalidAction]

View file

@ -18,7 +18,7 @@ class ValidateCurrentRenderLayerIsRenderable(pyblish.api.ContextPlugin):
label = "Current Render Layer Has Renderable Camera"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
families = ["studio.renderlayer"]
families = ["renderlayer"]
def process(self, instance):
layer = cmds.editRenderLayerGlobals(query=True, currentRenderLayer=True)

View file

@ -10,7 +10,7 @@ class ValidateDeadlineConnection(pyblish.api.ContextPlugin):
label = "Validate Deadline Web Service"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
families = ["studio.renderlayer"]
families = ["renderlayer"]
def process(self, instance):

View file

@ -17,10 +17,10 @@ class ValidateFrameRange(pyblish.api.InstancePlugin):
label = "Validate Frame Range"
order = pype.api.ValidateContentsOrder
families = ["studio.animation",
"studio.pointcache",
"studio.camera",
"studio.renderlayer",
families = ["animation",
"pointcache",
"camera",
"renderlayer",
"oolorbleed.vrayproxy"]
def process(self, instance):

View file

@ -12,7 +12,7 @@ class ValidateInstancerContent(pyblish.api.InstancePlugin):
"""
order = pyblish.api.ValidatorOrder
label = 'Instancer Content'
families = ["studio.instancer']
families = ["instancer']
def process(self, instance):

View file

@ -44,7 +44,7 @@ class ValidateInstancerFrameRanges(pyblish.api.InstancePlugin):
"""
order = pyblish.api.ValidatorOrder
label = 'Instancer Cache Frame Ranges'
families = ["studio.instancer']
families = ["instancer']
@classmethod
def get_invalid(cls, instance):

View file

@ -19,7 +19,7 @@ class ValidateJointsHidden(pyblish.api.InstancePlugin):
order = pype.api.ValidateContentsOrder
hosts = ['maya']
families = ["studio.rig']
families = ["rig']
category = 'rig'
version = (0, 1, 0)
label = "Joints Hidden"

Some files were not shown because too many files have changed in this diff Show more