update all icons
|
|
@ -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 = []
|
||||
|
|
|
|||
|
|
@ -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 '''
|
||||
|
||||
|
|
|
|||
32
openpype/resources/ftrack/action_icons/BatchTasks.svg
Normal file
|
After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 116 KiB |
32
openpype/resources/ftrack/action_icons/SortReview.svg
Normal file
|
After Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 101 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 120 KiB |
BIN
openpype/resources/icons/circle_yellow.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 112 KiB |
BIN
openpype/resources/icons/openpype_rim.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 66 KiB |