Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use run_name __main__ with runpy for matchmove script #159

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

johhnry
Copy link

@johhnry johhnry commented Oct 23, 2024

Changelog Description

Fixes #158

  • Uses runpy.run_path to run the matchmove script specifying the run name to be __name__.

Additional info

The fix was given by @BigRoy on Discord.

Testing notes:

  1. Open Maya
  2. AYON > Loader
  3. Right click on matchmove product
  4. Run Matchmove script
  5. The camera should be created

@iLLiCiTiT iLLiCiTiT requested review from BigRoy and antirotor October 23, 2024 12:55
@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Oct 23, 2024
@MustafaJafar MustafaJafar self-requested a review October 23, 2024 13:22
@MustafaJafar MustafaJafar added the community Issues and PRs coming from the community members label Oct 23, 2024
@BigRoy
Copy link
Contributor

BigRoy commented Oct 23, 2024

I don't have 3DE to generate such a published script to really test with. But yes, the code change "looks" ok.

@antirotor maybe you can do a test run?

Copy link
Contributor

@MustafaJafar MustafaJafar left a comment

Choose a reason for hiding this comment

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

Hey, this works!
Thank you.
image

@BigRoy
Copy link
Contributor

BigRoy commented Oct 31, 2024

@antirotor Can we merge?

@BigRoy BigRoy merged commit 1ca5973 into ynput:develop Oct 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues and PRs coming from the community members type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load matchmove .py script does nothing, __name__ != '__main__'
5 participants