Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hooks/tk-multi-loader2/basic/scene_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, *args, **kwargs):
##############################################################################################################
# public interface - to be overridden by deriving classes

def generate_actions(self, sg_publish_data, actions, ui_area):
def generate_actions(self, sg_publish_data, actions, ui_area, **kwargs):
"""
Returns a list of action instances for a particular publish.
This method is called each time a user clicks a publish somewhere in the UI.
Expand Down Expand Up @@ -159,7 +159,7 @@ def generate_actions(self, sg_publish_data, actions, ui_area):

return action_instances

def execute_action(self, name, params, sg_publish_data):
def execute_action(self, name, params, sg_publish_data, **kwargs):
"""
Execute a given action. The data sent to this be method will
represent one of the actions enumerated by the generate_actions method.
Expand Down Expand Up @@ -196,7 +196,7 @@ def execute_action(self, name, params, sg_publish_data):
image_path = self.get_publish_path(sg_publish_data)
self.import_sceneplate(image_path, params.get("sceneplate_type"))

def execute_multiple_actions(self, actions):
def execute_multiple_actions(self, actions, **kwargs):
"""
Executes the specified action on a list of items.

Expand Down Expand Up @@ -247,7 +247,7 @@ def execute_multiple_actions(self, actions):
else:
# This action can be executed in multiple single functions
params = action["params"]
self.execute_action(name, params, sg_publish_data)
self.execute_action(name, params, sg_publish_data, **kwargs)

# Execute batch functions now that the data has been gatheredt
for batch_action in batch_actions.values():
Expand Down