From 3775e1659be26e0760e2969091b15b8d149ef9b4 Mon Sep 17 00:00:00 2001 From: Carlos Villavicencio Date: Thu, 11 Jun 2026 11:31:34 -0500 Subject: [PATCH] Fix hooks to support multiple keyword arguments --- hooks/tk-multi-loader2/basic/scene_actions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hooks/tk-multi-loader2/basic/scene_actions.py b/hooks/tk-multi-loader2/basic/scene_actions.py index f07fa638..6f7298cf 100644 --- a/hooks/tk-multi-loader2/basic/scene_actions.py +++ b/hooks/tk-multi-loader2/basic/scene_actions.py @@ -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. @@ -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. @@ -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.