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

make default value for readAnimData controlled by env. var #164

Closed

Conversation

pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Feb 14, 2017

Description of Change(s)

Adds an environment var, $PIXMAYA_READ_ANIM_BY_DEFAULT, for controlling the default setting for readAnimData on import.

Included Commit(s)

Fixes Issue(s)

@spiffmon
Copy link
Member

spiffmon commented Feb 14, 2017 via email

@pmolodo
Copy link
Contributor Author

pmolodo commented Feb 14, 2017

It does? It's still false in JobArgs (https://github.com/PixarAnimationStudios/USD/blob/master/third_party/maya/lib/usdMaya/JobArgs.cpp#L70), and in usdTranslatorImport (https://github.com/PixarAnimationStudios/USD/blob/master/third_party/maya/lib/usdMaya/usdTranslatorImport.h#L46). And I tested the behavior on this commit, which I believe comes off the dev branch that was merged for 7.3, and it still defaulted to off.

However - if the plan is to make it true by default, then no, we don't need this...

@spiffmon
Copy link
Member

My mistake, twice over.

  1. The change I was thinking of went in just after we cut 0.7.3, and it hasn't pushed out to github yet.
  2. It only affects the import UI default.

Here's the description:
Make USD import UI read anim data by default

  • This only affects the translator's default UI options
  • This does not change the usdExport scripting command, which assumes readAnimData=false by default unless the flag is explicitly set to true

--spiff

@pmolodo
Copy link
Contributor Author

pmolodo commented Feb 14, 2017 via email

Conflicts:
	third_party/maya/lib/usdMaya/usdTranslatorImport.h
@chadrik
Copy link
Contributor

chadrik commented Feb 23, 2017

@spiff, what do you think about forgoing the environment variable and just changing the default at the command level? It's a breaking change, but now's the time to make those kinds of choices.

@spiffmon
Copy link
Member

spiffmon commented Mar 3, 2017

@chadrik - sorry for the delay. We discussed and do support changing the default to true at all levels. Thanks!

@pmolodo pmolodo closed this Mar 9, 2017
@pmolodo pmolodo reopened this Mar 9, 2017
@pmolodo
Copy link
Contributor Author

pmolodo commented Mar 9, 2017

Should I modify this pull request to just set the default at all levels? Or did you mean that was something you were going to do on your end?

@pmolodo
Copy link
Contributor Author

pmolodo commented Mar 9, 2017

(and sorry for the close / reopen spam, that was something suggested by github support deal with the fact that github though the travis-ci build hadn't finished, while travis-ci said it had...)

@spiffmon
Copy link
Member

spiffmon commented Mar 9, 2017 via email

@pmolodo
Copy link
Contributor Author

pmolodo commented Mar 10, 2017

Closing in favor of #174, which just defaults to true on all levels, with no env var

@pmolodo pmolodo closed this Mar 10, 2017
AdamFelt pushed a commit to autodesk-forks/USD that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants