mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Fix creating multiple ass instances
This commit is contained in:
parent
067a6c7c93
commit
7d5ede8ae5
2 changed files with 7 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ from openpype.hosts.maya.api import (
|
|||
from maya import cmds
|
||||
|
||||
|
||||
class CreateAss(plugin.Creator):
|
||||
class CreateArnoldSceneSource(plugin.Creator):
|
||||
"""Arnold Scene Source"""
|
||||
|
||||
name = "ass"
|
||||
|
|
@ -29,7 +29,7 @@ class CreateAss(plugin.Creator):
|
|||
maskOperator = False
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreateAss, self).__init__(*args, **kwargs)
|
||||
super(CreateArnoldSceneSource, self).__init__(*args, **kwargs)
|
||||
|
||||
# Add animation data
|
||||
self.data.update(lib.collect_animation_data())
|
||||
|
|
@ -52,7 +52,7 @@ class CreateAss(plugin.Creator):
|
|||
self.data["maskOperator"] = self.maskOperator
|
||||
|
||||
def process(self):
|
||||
instance = super(CreateAss, self).process()
|
||||
instance = super(CreateArnoldSceneSource, self).process()
|
||||
|
||||
nodes = []
|
||||
|
||||
|
|
@ -61,6 +61,6 @@ class CreateAss(plugin.Creator):
|
|||
|
||||
cmds.sets(nodes, rm=instance)
|
||||
|
||||
assContent = cmds.sets(name="content_SET")
|
||||
assProxy = cmds.sets(name="proxy_SET", empty=True)
|
||||
assContent = cmds.sets(name=instance + "_content_SET")
|
||||
assProxy = cmds.sets(name=instance + "_proxy_SET", empty=True)
|
||||
cmds.sets([assContent, assProxy], forceElement=instance)
|
||||
|
|
@ -20,10 +20,10 @@ class CollectArnoldSceneSource(pyblish.api.InstancePlugin):
|
|||
if members is None:
|
||||
self.log.warning("Skipped empty instance: \"%s\" " % objset)
|
||||
continue
|
||||
if "content_SET" in objset:
|
||||
if objset.endswith("content_SET"):
|
||||
instance.data["setMembers"] = members
|
||||
self.log.debug("content members: {}".format(members))
|
||||
elif objset.startswith("proxy_SET"):
|
||||
elif objset.endswith("proxy_SET"):
|
||||
instance.data["proxy"] = members
|
||||
self.log.debug("proxy members: {}".format(members))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue