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

Improve Publish Error Report when 'maya-unknown-nodes-save-error' happens due to unloaded addon like Arnold render #228

Open
1 task done
LiborBatek opened this issue Jan 30, 2025 · 0 comments
Labels
type: enhancement Improvement of existing functionality or minor addition

Comments

@LiborBatek
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues and added correct labels.

Please describe the feature you have in mind and explain what the current shortcomings are?

When trying to publish e.g. model and the workfile having .mb format and having some unknown nodes present (e.g. when accidentally unloaded mtoa plugin) and AYON trying to force prefered .ma as representation for workfile publish will fail and with not much clear message whats going on.

Image

when inspected in the detail pane:

Traceback (most recent call last):
  File "C:\Users\lbate\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\dependencies\pyblish\plugin.py", line 528, in __explicit_process
    runner(*args)
  File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\maya_0.4.3\ayon_maya\plugins\publish\extract_model.py", line 91, in process
    cmds.file(path,
RuntimeError: This file contains unknown data which is preventing Maya from changing the file format.
Check if unsupported plug-ins are used in the scene. Remove the unsupported data and resave.
See this article for more detail.
https://www.autodesk.com/maya-unknown-nodes-save-error

Suggested implementation?

It should user inform in a clear way whats the possible cause of the issue and propose a solution to it.

e.g.

It happens you may miss some maya addons loaded so AYON cant change workfile file format due to the unknown nodes present in your scene.

Please resolve unknown nodes via loading apropriate maya plugin or remove such nodes first so saving action can be performed.

You get the idea.

Maybe its worth to think about possible logic to not change file format if changing could not be performed due to these circumstances. (not sure about it tho)

Describe alternatives you've considered:

No response

@LiborBatek LiborBatek added the type: enhancement Improvement of existing functionality or minor addition label Jan 30, 2025
@LiborBatek LiborBatek marked this as a duplicate of #229 Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

No branches or pull requests

1 participant