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

change .bat to .cmd for Houdini 20 and higher #205

Closed
wants to merge 1 commit into from

Conversation

Torulus
Copy link

@Torulus Torulus commented Jan 14, 2025

Changelog Description

This PR changes the usdview executable file extension name from ".bat" to ".cmd" for Houdini 20 and higher.
This fixes the show in usdview button in the houdini loader for Houdini 20.

Additional review information

Added Houdini version check that switches between the file extensions

Testing notes:

  1. Open Houdini 20
  2. Use "view in usdview" button in Ayon-loader

@BigRoy BigRoy added the type: bug Something isn't working label Jan 14, 2025
@BigRoy BigRoy requested a review from MustafaJafar January 14, 2025 16:32
@MustafaJafar MustafaJafar requested a review from BigRoy January 14, 2025 16:32
@m-u-r-p-h-y m-u-r-p-h-y added the community Issues and PRs coming from the community members label Jan 14, 2025
@BigRoy BigRoy linked an issue Jan 15, 2025 that may be closed by this pull request
Comment on lines +25 to +27
houdiniVersion = os.environ["HOUDINI_VERSION"]
major = int(houdiniVersion.split(".")[0])
if major >= 20:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we're better of querying this from Houdini directly.

Suggested change
houdiniVersion = os.environ["HOUDINI_VERSION"]
major = int(houdiniVersion.split(".")[0])
if major >= 20:
if hou.applicationVersion()[0] >= 20:

Do note that you'd need to add import hou too.

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.

It works.

@MustafaJafar
Copy link
Contributor

Hello, for sake of getting this merged, I've included your commit (which keeps your contribution), added one more and creating a new PR.
Closing this PR in favor of #207
Thank you for your contribution.

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.

AY-7324_usdview loader doesn't work in Houdini 20.5
4 participants