mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add setting for sync workfile version with maya render
This commit is contained in:
parent
8dba1b9557
commit
065b5d0340
1 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ class CollectMayaRender(pyblish.api.ContextPlugin):
|
|||
order = pyblish.api.CollectorOrder + 0.01
|
||||
hosts = ["maya"]
|
||||
label = "Collect Render Layers"
|
||||
sync_workfile_version = False
|
||||
|
||||
def process(self, context):
|
||||
"""Entry point to collector."""
|
||||
|
|
@ -250,6 +251,9 @@ class CollectMayaRender(pyblish.api.ContextPlugin):
|
|||
"convertToScanline": render_instance.data.get("convertToScanline") or False # noqa: E501
|
||||
}
|
||||
|
||||
if self.sync_workfile_version:
|
||||
data["version"] = context.data["version"]
|
||||
|
||||
# Apply each user defined attribute as data
|
||||
for attr in cmds.listAttr(layer, userDefined=True) or list():
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue