From a2c37975aab733da1bd55ef39b4aa9af449b89a8 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 6 Dec 2023 12:24:27 +0100 Subject: [PATCH] feat: Add support for multiple reviewable components This commit adds support for creating multiple reviewable components in the `IntegrateFtrackInstance` plugin. It introduces a new variable `extended_asset_name` to change the asset name of each new component for review. This feature is particularly useful when there are more than one representation to be reviewed. --- .../modules/ftrack/plugins/publish/integrate_ftrack_instances.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py b/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py index edad0b0132..8422ddc9f8 100644 --- a/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py +++ b/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py @@ -230,6 +230,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin): # Create review components # Change asset name of each new component for review multiple_reviewable = len(review_representations) > 1 + extended_asset_name = None for index, repre in enumerate(review_representations): if not self._is_repre_video(repre) and has_movie_review: self.log.debug("Movie repre has priority "