Skip to content

SG-43677 Fix hooks to support multiple keyword arguments#144

Merged
carlos-villavicencio-adsk merged 1 commit into
ticket/SG-43456_migration_1from
ticket/SG-43677_photoshop_issue
Jun 11, 2026
Merged

SG-43677 Fix hooks to support multiple keyword arguments#144
carlos-villavicencio-adsk merged 1 commit into
ticket/SG-43456_migration_1from
ticket/SG-43677_photoshop_issue

Conversation

@carlos-villavicencio-adsk

Copy link
Copy Markdown
Contributor

Base branch: #137

DCCs that are not supported with FlowAM integration crashes their hooks due to unexpected arguments. This PRs addresses this issue by just adding **kwargs and silently ignoring them when not needed.

@chenm1adsk chenm1adsk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this file? I'm surprised we missed it!

# 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):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I'm injecting a new argument to the hook for flowam integration to work.

This is not needed on all DCCs (i.e. 3ds, photoshop) but it crashes due to the unexpected argument. So this is just adding the placeholder.

You can see the difference on this file and compare it to tk-maya_actions.py to have a better picture.

@carlos-villavicencio-adsk

Copy link
Copy Markdown
Contributor Author

Merging this. Any further updates can be done against #137

@carlos-villavicencio-adsk carlos-villavicencio-adsk merged commit 777b988 into ticket/SG-43456_migration_1 Jun 11, 2026
12 of 25 checks passed
@carlos-villavicencio-adsk carlos-villavicencio-adsk deleted the ticket/SG-43677_photoshop_issue branch June 11, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants