mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
trayp: adding universal attribute for new asset creation
This commit is contained in:
parent
dc7856e919
commit
5d49d9c3d2
2 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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...")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue