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):
super().__init__(*args, **kwargs)
self.alias_py = self.parent.engine.alias_py

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 @@ -125,7 +125,7 @@ def generate_actions(self, sg_publish_data, actions, ui_area):

return action_instances

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 @@ -155,9 +155,9 @@ def execute_multiple_actions(self, actions):
name = single_action["name"]
sg_publish_data = single_action["sg_publish_data"]
params = single_action["params"]
self.execute_action(name, params, sg_publish_data)
self.execute_action(name, params, sg_publish_data, **kwargs)

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