mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use existing path for thumbnails if it's not published
This commit is contained in:
parent
5c4f9c1ca9
commit
49aa669467
1 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import pyblish.api
|
||||
import json
|
||||
import os
|
||||
|
||||
|
||||
class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||
|
|
@ -68,6 +69,10 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
"name": "thumbnail" # Default component name is "main".
|
||||
}
|
||||
comp['thumbnail'] = True
|
||||
if not comp.get("published_path"):
|
||||
comp['published_path'] = os.path.join(comp['stagingDir'],
|
||||
comp["files"])
|
||||
|
||||
elif comp.get('ftrackreview') or ("ftrackreview" in comp.get('tags', [])):
|
||||
'''
|
||||
Ftrack bug requirement:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue