mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
commit
abb980edb7
9 changed files with 16 additions and 8 deletions
|
|
@ -193,6 +193,7 @@ class ExtractBurnin(pype.api.Extractor):
|
||||||
self.log.debug("Output: {}".format(output))
|
self.log.debug("Output: {}".format(output))
|
||||||
|
|
||||||
repre_update = {
|
repre_update = {
|
||||||
|
"anatomy_template": "render",
|
||||||
"files": movieFileBurnin,
|
"files": movieFileBurnin,
|
||||||
"name": repre["name"],
|
"name": repre["name"],
|
||||||
"tags": [x for x in repre["tags"] if x != "delete"]
|
"tags": [x for x in repre["tags"] if x != "delete"]
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ class CreateYetiCache(avalon.maya.Creator):
|
||||||
label = "Yeti Cache"
|
label = "Yeti Cache"
|
||||||
family = "yeticache"
|
family = "yeticache"
|
||||||
icon = "pagelines"
|
icon = "pagelines"
|
||||||
|
defaults = ["Main"]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(CreateYetiCache, self).__init__(*args, **kwargs)
|
super(CreateYetiCache, self).__init__(*args, **kwargs)
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ class CreateYetiRig(avalon.maya.Creator):
|
||||||
label = "Yeti Rig"
|
label = "Yeti Rig"
|
||||||
family = "yetiRig"
|
family = "yetiRig"
|
||||||
icon = "usb"
|
icon = "usb"
|
||||||
|
defaults = ["Main"]
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,17 @@ class LookLoader(pype.maya.plugin.ReferenceLoader):
|
||||||
|
|
||||||
def process_reference(self, context, name, namespace, options):
|
def process_reference(self, context, name, namespace, options):
|
||||||
"""
|
"""
|
||||||
Load and try to assign Lookdev to nodes based on relationship data
|
Load and try to assign Lookdev to nodes based on relationship data.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
name:
|
name:
|
||||||
namespace:
|
namespace:
|
||||||
context:
|
context:
|
||||||
data:
|
options:
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import maya.cmds as cmds
|
import maya.cmds as cmds
|
||||||
from avalon import maya
|
from avalon import maya
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,10 @@ class ReferenceLoader(pype.maya.plugin.ReferenceLoader):
|
||||||
roots.add(pm.PyNode(node).getAllParents()[-2])
|
roots.add(pm.PyNode(node).getAllParents()[-2])
|
||||||
except: # noqa: E722
|
except: # noqa: E722
|
||||||
pass
|
pass
|
||||||
for root in roots:
|
|
||||||
root.setParent(world=True)
|
if family not in ["layout", "setdress", "mayaAscii"]:
|
||||||
|
for root in roots:
|
||||||
|
root.setParent(world=True)
|
||||||
|
|
||||||
groupNode.zeroTransformPivots()
|
groupNode.zeroTransformPivots()
|
||||||
for root in roots:
|
for root in roots:
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@ class YetiRigLoader(pype.maya.plugin.ReferenceLoader):
|
||||||
icon = "code-fork"
|
icon = "code-fork"
|
||||||
color = "orange"
|
color = "orange"
|
||||||
|
|
||||||
def process_reference(self, context, name=None, namespace=None, data=None):
|
def process_reference(
|
||||||
|
self, context, name=None, namespace=None, options=None):
|
||||||
|
|
||||||
import maya.cmds as cmds
|
import maya.cmds as cmds
|
||||||
from avalon import maya
|
from avalon import maya
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,8 @@ class CollectLook(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
# Remove sets that didn't have any members assigned in the end
|
# Remove sets that didn't have any members assigned in the end
|
||||||
# Thus the data will be limited to only what we need.
|
# Thus the data will be limited to only what we need.
|
||||||
if not sets[objset]["members"]:
|
self.log.info("objset {}".format(sets[objset]))
|
||||||
|
if not sets[objset]["members"] or (not objset.endswith("SG")):
|
||||||
self.log.info("Removing redundant set information: "
|
self.log.info("Removing redundant set information: "
|
||||||
"%s" % objset)
|
"%s" % objset)
|
||||||
sets.pop(objset, None)
|
sets.pop(objset, None)
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ class ExtractYetiRig(pype.api.Extractor):
|
||||||
nodes = instance.data["setMembers"]
|
nodes = instance.data["setMembers"]
|
||||||
resources = instance.data.get("resources", {})
|
resources = instance.data.get("resources", {})
|
||||||
with disconnect_plugs(settings, members):
|
with disconnect_plugs(settings, members):
|
||||||
with yetigraph_attribute_values(destination_folder, resources):
|
with yetigraph_attribute_values(resources_dir, resources):
|
||||||
with maya.attribute_values(attr_value):
|
with maya.attribute_values(attr_value):
|
||||||
cmds.select(nodes, noExpand=True)
|
cmds.select(nodes, noExpand=True)
|
||||||
cmds.file(maya_path,
|
cmds.file(maya_path,
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,7 @@ class ExtractThumbnail(pype.api.Extractor):
|
||||||
repre = {
|
repre = {
|
||||||
'name': name,
|
'name': name,
|
||||||
'ext': "jpeg",
|
'ext': "jpeg",
|
||||||
|
"outputName": "thumb",
|
||||||
'files': file,
|
'files': file,
|
||||||
"stagingDir": staging_dir,
|
"stagingDir": staging_dir,
|
||||||
"frameStart": first_frame,
|
"frameStart": first_frame,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue