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

USD plugin: Don't crash plugin file because of missing dependency #796

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

USD publish plugin files do not crash on missing dependency.

Additional info

Added validator to check missing dependencies.

This is first shot, any modifications welcommed, the point is that the file should not crash.

Testing notes:

  1. Open publisher (e.g. in traypublisher).
  2. In Details tab should not be any crashed plugin paths (at least there should not be extract_usd_layer_contributions.py).

@iLLiCiTiT iLLiCiTiT requested a review from BigRoy July 23, 2024 15:34
@ynbot ynbot added type: enhancement Improvement of existing functionality or minor addition size/XS labels Jul 23, 2024
@iLLiCiTiT iLLiCiTiT requested a review from antirotor August 9, 2024 08:08
Copy link
Collaborator

@BigRoy BigRoy left a comment

Choose a reason for hiding this comment

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

I started fiddling around with other ways that would completely "deregister" the plug-ins etc. and issue a one shot warning using warnings package... but it just felt less nice for artists because they'd still get a warning to the console.

This is much more hidden away until it hits a production case where it should have been working - so fine with me.

Worked in Maya 2024 with USD exports, and tray publisher + maya did indeed ignore it as crashed plug-ins.

@BigRoy BigRoy merged commit 588d339 into develop Aug 28, 2024
3 checks passed
@BigRoy BigRoy deleted the enhancement/soft-crash-of-usd-plugin branch August 28, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants