mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
ftrack: renameing attribute to keep_first_subset_name_for_review
This commit is contained in:
parent
97dca92bbe
commit
c9edd81e17
3 changed files with 7 additions and 7 deletions
|
|
@ -35,7 +35,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||||
"image": "img",
|
"image": "img",
|
||||||
"reference": "reference"
|
"reference": "reference"
|
||||||
}
|
}
|
||||||
nicer_asset_name = False
|
keep_first_subset_name_for_review = True
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
self.log.debug("instance {}".format(instance))
|
self.log.debug("instance {}".format(instance))
|
||||||
|
|
@ -177,7 +177,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||||
# condition for multiple reviewable representations
|
# condition for multiple reviewable representations
|
||||||
# expand name to better label componenst
|
# expand name to better label componenst
|
||||||
if (
|
if (
|
||||||
self.nicer_asset_name is not False
|
not self.keep_first_subset_name_for_review
|
||||||
and is_first_review_repre
|
and is_first_review_repre
|
||||||
and len(review_representations) > 1
|
and len(review_representations) > 1
|
||||||
):
|
):
|
||||||
|
|
@ -284,7 +284,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
# add extended name if any
|
# add extended name if any
|
||||||
if (
|
if (
|
||||||
self.nicer_asset_name is not False
|
not self.keep_first_subset_name_for_review
|
||||||
and extended_asset_name is not False
|
and extended_asset_name is not False
|
||||||
):
|
):
|
||||||
other_item["asset_data"]["name"] = extended_asset_name
|
other_item["asset_data"]["name"] = extended_asset_name
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@
|
||||||
"redshiftproxy": "cache",
|
"redshiftproxy": "cache",
|
||||||
"usd": "usd"
|
"usd": "usd"
|
||||||
},
|
},
|
||||||
"nicer_asset_name": false
|
"keep_first_subset_name_for_review": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -787,9 +787,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"key": "nicer_asset_name",
|
"key": "keep_first_subset_name_for_review",
|
||||||
"label": "Nicer Asset name if multiple reviewable",
|
"label": "Make subset name as first asset name",
|
||||||
"default": false
|
"default": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue