diff --git a/openpype/modules/ftrack/event_handlers_user/action_batch_task_creation.py b/openpype/modules/ftrack/event_handlers_user/action_batch_task_creation.py index 9146dc1f81..08b845d490 100644 --- a/openpype/modules/ftrack/event_handlers_user/action_batch_task_creation.py +++ b/openpype/modules/ftrack/event_handlers_user/action_batch_task_creation.py @@ -2,7 +2,7 @@ Taken from https://github.com/tokejepsen/ftrack-hooks/tree/master/batch_tasks """ -from openpype.modules.ftrack.lib import BaseAction +from openpype.modules.ftrack.lib import BaseAction, statics_icon class BatchTasksAction(BaseAction): @@ -13,10 +13,11 @@ class BatchTasksAction(BaseAction): `identifier` a unique identifier for your action. `description` a verbose descriptive text for you action ''' - label = "Batch Tasks" + label = "Batch Task Create" variant = None identifier = "batch-tasks" description = None + icon = statics_icon("ftrack", "action_icons", "BatchTasks.svg") def discover(self, session, entities, event): '''Return true if we can handle the selected entities. @@ -29,11 +30,13 @@ class BatchTasksAction(BaseAction): or Asset Build. *event* the unmodified original event ''' - # Only discover the action if any selection is made. - if entities: - return True - return False + not_allowed = ["assetversion", "project", "ReviewSession" + if entities[0].entity_type.lower() in not_allowed: + return False + + return True + def get_task_form_items(self, session, number_of_tasks): items = [] diff --git a/openpype/modules/ftrack/event_handlers_user/action_client_review_sort.py b/openpype/modules/ftrack/event_handlers_user/action_client_review_sort.py index fc611c1d2b..7c9a2881d6 100644 --- a/openpype/modules/ftrack/event_handlers_user/action_client_review_sort.py +++ b/openpype/modules/ftrack/event_handlers_user/action_client_review_sort.py @@ -1,4 +1,4 @@ -from openpype.modules.ftrack.lib import BaseAction +from openpype.modules.ftrack.lib import BaseAction, statics_icon try: from functools import cmp_to_key except Exception: @@ -50,6 +50,8 @@ class ClientReviewSort(BaseAction): #: Action label. label = 'Sort Review' + icon = statics_icon("ftrack", "action_icons", "SortReview.svg") + def discover(self, session, entities, event): ''' Validation ''' diff --git a/openpype/resources/ftrack/action_icons/BatchTasks.svg b/openpype/resources/ftrack/action_icons/BatchTasks.svg new file mode 100644 index 0000000000..5cf5d423dd --- /dev/null +++ b/openpype/resources/ftrack/action_icons/BatchTasks.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openpype/resources/ftrack/action_icons/CreateFolders.svg b/openpype/resources/ftrack/action_icons/CreateFolders.svg index c07e474e5c..18efc273aa 100644 --- a/openpype/resources/ftrack/action_icons/CreateFolders.svg +++ b/openpype/resources/ftrack/action_icons/CreateFolders.svg @@ -1,51 +1,29 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + - - - diff --git a/openpype/resources/ftrack/action_icons/CreateProjectFolders.svg b/openpype/resources/ftrack/action_icons/CreateProjectFolders.svg index 5fa653361e..0e5821b0be 100644 --- a/openpype/resources/ftrack/action_icons/CreateProjectFolders.svg +++ b/openpype/resources/ftrack/action_icons/CreateProjectFolders.svg @@ -1,51 +1,29 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + - - - diff --git a/openpype/resources/ftrack/action_icons/DeleteAsset.svg b/openpype/resources/ftrack/action_icons/DeleteAsset.svg index a41ae31d12..855bdae7c5 100644 --- a/openpype/resources/ftrack/action_icons/DeleteAsset.svg +++ b/openpype/resources/ftrack/action_icons/DeleteAsset.svg @@ -1 +1,32 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openpype/resources/ftrack/action_icons/Delivery.svg b/openpype/resources/ftrack/action_icons/Delivery.svg index 3380487c31..a6333333ae 100644 --- a/openpype/resources/ftrack/action_icons/Delivery.svg +++ b/openpype/resources/ftrack/action_icons/Delivery.svg @@ -1,34 +1,27 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + diff --git a/openpype/resources/ftrack/action_icons/OpenPypeAdmin.svg b/openpype/resources/ftrack/action_icons/OpenPypeAdmin.svg index c95a29dacb..c2abc6146f 100644 --- a/openpype/resources/ftrack/action_icons/OpenPypeAdmin.svg +++ b/openpype/resources/ftrack/action_icons/OpenPypeAdmin.svg @@ -1,173 +1,47 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openpype/resources/ftrack/action_icons/PrepareProject.svg b/openpype/resources/ftrack/action_icons/PrepareProject.svg index bd6b460ce3..644d83f84d 100644 --- a/openpype/resources/ftrack/action_icons/PrepareProject.svg +++ b/openpype/resources/ftrack/action_icons/PrepareProject.svg @@ -1,88 +1,29 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openpype/resources/ftrack/action_icons/SeedProject.svg b/openpype/resources/ftrack/action_icons/SeedProject.svg index 19ab22e411..ff818b5ecb 100644 --- a/openpype/resources/ftrack/action_icons/SeedProject.svg +++ b/openpype/resources/ftrack/action_icons/SeedProject.svg @@ -1,89 +1,29 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openpype/resources/ftrack/action_icons/SortReview.svg b/openpype/resources/ftrack/action_icons/SortReview.svg new file mode 100644 index 0000000000..13a7def648 --- /dev/null +++ b/openpype/resources/ftrack/action_icons/SortReview.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openpype/resources/ftrack/action_icons/Thumbnail.svg b/openpype/resources/ftrack/action_icons/Thumbnail.svg index a8780b9a04..9af330e79a 100644 --- a/openpype/resources/ftrack/action_icons/Thumbnail.svg +++ b/openpype/resources/ftrack/action_icons/Thumbnail.svg @@ -1,136 +1,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openpype/resources/icons/circle_green.png b/openpype/resources/icons/circle_green.png index 6b5e27c49e..a81cfbfb5a 100644 Binary files a/openpype/resources/icons/circle_green.png and b/openpype/resources/icons/circle_green.png differ diff --git a/openpype/resources/icons/circle_red.png b/openpype/resources/icons/circle_red.png index ba8e9c8fe7..a473cda123 100644 Binary files a/openpype/resources/icons/circle_red.png and b/openpype/resources/icons/circle_red.png differ diff --git a/openpype/resources/icons/circle_yellow.png b/openpype/resources/icons/circle_yellow.png new file mode 100644 index 0000000000..3f6bbaa1bd Binary files /dev/null and b/openpype/resources/icons/circle_yellow.png differ diff --git a/openpype/resources/icons/inventory.png b/openpype/resources/icons/inventory.png index 07e0f9cd18..06c07c783e 100644 Binary files a/openpype/resources/icons/inventory.png and b/openpype/resources/icons/inventory.png differ diff --git a/openpype/resources/icons/loader.png b/openpype/resources/icons/loader.png index f3acabb233..9787fef570 100644 Binary files a/openpype/resources/icons/loader.png and b/openpype/resources/icons/loader.png differ diff --git a/openpype/resources/icons/lookmanager.png b/openpype/resources/icons/lookmanager.png index c929037cdf..2dde025430 100644 Binary files a/openpype/resources/icons/lookmanager.png and b/openpype/resources/icons/lookmanager.png differ diff --git a/openpype/resources/icons/openpype_icon.png b/openpype/resources/icons/openpype_icon.png index c3ab1d3002..41469a7399 100644 Binary files a/openpype/resources/icons/openpype_icon.png and b/openpype/resources/icons/openpype_icon.png differ diff --git a/openpype/resources/icons/openpype_icon_staging.png b/openpype/resources/icons/openpype_icon_staging.png index 2bcf342c20..f1da43fad2 100644 Binary files a/openpype/resources/icons/openpype_icon_staging.png and b/openpype/resources/icons/openpype_icon_staging.png differ diff --git a/openpype/resources/icons/openpype_rim.png b/openpype/resources/icons/openpype_rim.png new file mode 100644 index 0000000000..26e93e67d5 Binary files /dev/null and b/openpype/resources/icons/openpype_rim.png differ diff --git a/openpype/resources/icons/openpype_splash.png b/openpype/resources/icons/openpype_splash.png index d44ffb29b4..191c70c88d 100644 Binary files a/openpype/resources/icons/openpype_splash.png and b/openpype/resources/icons/openpype_splash.png differ diff --git a/openpype/resources/icons/openpype_splash_staging.png b/openpype/resources/icons/openpype_splash_staging.png index 2ac49abb9d..5a2db47385 100644 Binary files a/openpype/resources/icons/openpype_splash_staging.png and b/openpype/resources/icons/openpype_splash_staging.png differ diff --git a/openpype/resources/icons/workfiles.png b/openpype/resources/icons/workfiles.png index 8541a6d68c..179f5fae0f 100644 Binary files a/openpype/resources/icons/workfiles.png and b/openpype/resources/icons/workfiles.png differ