trayp: adding universal attribute for new asset creation

This commit is contained in:
Jakub Jezek 2022-07-21 12:29:38 +02:00
parent dc7856e919
commit 5d49d9c3d2
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 3 additions and 1 deletions

View file

@ -550,6 +550,8 @@ or updating already created. Publishing will create OTIO file.
"asset": parent_asset_name,
"task": "",
"new_asset_publishing": True,
# parent time properties
"trackStartFrame": track_start_frame,
"timelineOffset": timeline_offset,

View file

@ -24,7 +24,7 @@ class ValidateAssetDocs(pyblish.api.InstancePlugin):
if instance.data.get("assetEntity"):
self.log.info("Instance has set asset document in its data.")
elif "editorial" in instance.data.get("creator_identifier", ""):
elif instance.context.data.get("new_asset_publishing"):
# skip if it is editorial
self.log.info("Editorial instance is no need to check...")