ftrack: renameing attribute to keep_first_subset_name_for_review

This commit is contained in:
Jakub Jezek 2022-04-04 12:04:56 +02:00
parent 97dca92bbe
commit c9edd81e17
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
3 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -396,7 +396,7 @@
"redshiftproxy": "cache", "redshiftproxy": "cache",
"usd": "usd" "usd": "usd"
}, },
"nicer_asset_name": false "keep_first_subset_name_for_review": true
} }
} }
} }

View file

@ -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
} }
] ]
} }