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

fix import of "useSpecularWorkflow" input on UsdPreviewSurface shaders #837

Conversation

mattyjams
Copy link
Contributor

useSpecularWorkflow is an int-typed input attribute in USD, but it's a boolean attribute in Maya, so the value needs to be type-converted during import. The conversion was already being done for export.

"useSpecularWorkflow" is an int-typed input attribute in USD, but it's a
boolean attribute in Maya, so the value needs to be type-converted during
import. The conversion was already being done for export.

This fixes an issue where the value was not being set on the Maya shading node
and an error message that looks like this was being emitted:

Runtime Error: in SetMayaAttr at line 719 of lib/mayaUsd/fileio/utils/readUtil.cpp -- Cannot set value of type 'int' on plug '<shaderName>.useSpecularWorkflow'
@mattyjams mattyjams added the import-export Related to Import and/or Export label Oct 16, 2020
@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 16, 2020
@kxl-adsk kxl-adsk merged commit 0a1afbb into Autodesk:dev Oct 16, 2020
@mattyjams mattyjams deleted the pr/fix_import_of_UsdPreviewSurface_useSpecularWorkflow branch October 16, 2020 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import-export Related to Import and/or Export ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants