mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
modify integrate ftrack instances to be able upload origin filename
This commit is contained in:
parent
5a78cb0f84
commit
e6bf6add2f
1 changed files with 8 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
"reference": "reference"
|
||||
}
|
||||
keep_first_subset_name_for_review = True
|
||||
upload_reviewable_with_origin_name = False
|
||||
asset_versions_status_profiles = []
|
||||
additional_metadata_keys = []
|
||||
|
||||
|
|
@ -294,6 +295,13 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
)
|
||||
# Add item to component list
|
||||
component_list.append(review_item)
|
||||
if self.upload_reviewable_with_origin_name:
|
||||
origin_name_component = copy.deepcopy(review_item)
|
||||
filename = os.path.basename(repre_path)
|
||||
origin_name_component["component_data"]["name"] = (
|
||||
os.path.splitext(filename)[0]
|
||||
)
|
||||
component_list.append(origin_name_component)
|
||||
|
||||
# Duplicate thumbnail component for all not first reviews
|
||||
if first_thumbnail_component is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue