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

Update exporters for string varnames #2601

Merged
merged 5 commits into from
Oct 6, 2022
Merged

Conversation

JGamache-autodesk
Copy link
Collaborator

The varname input of all UsdPrimVarReader nodes went from a Token to a String in USD 20.11. This updates the exporter to follow the convention currently in use, and allows re-using varnames with MaterialX.

We also do not hardcode the output name of MaterialX nodes. We query the Sdr registry for the correct information.

There are still too many hardcoded names and types in the exporter. To be fixed later.

The varname input of all UsdPrimVarReader nodes went from a Token to a
String in USD 20.11. This updates the exporter to follow the convention
currently in use, and allows re-using varnames with MaterialX.

We also do not hardcode the output name of MaterialX nodes. We query the
Sdr registry for the correct information.

There are still too many hardcoded names and types in the exporter. To be fixed later.
Copy link
Collaborator

@seando-adsk seando-adsk left a comment

Choose a reason for hiding this comment

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

I'm not familiar with this mtlx code. I just one minor comment about variable names.

Comment on lines 60 to 61
static SdfValueTypeName _varnameType;
static bool _once = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Only class members should use leading underscore.

@seando-adsk seando-adsk merged commit 256343d into dev Oct 6, 2022
@seando-adsk seando-adsk deleted the gamaj/varname_datatype_update branch October 6, 2022 17:32
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants