-
Notifications
You must be signed in to change notification settings - Fork 36
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
attributes' default value not saved in scene #34
Comments
That's probably because Maya doesn't support default values for non numeric types. You can't even do that manually. String.default() should be removed to avoid confusion (or at least removed at addAttr) |
Strange that it assigns the value at all. :/ We could remove it, but I think we should handle it instead. No reason this shouldn't work other than a Maya API limitation, and we can just regularly assign it post-creation to keep all attributes uniform and working as expected. Anyone interested in tackling this? |
I have a workaround already, it’s ugly but I can kick a PR tomorrow-ish. |
- see mottosso#34 - handles Compounds recursively
If I create an attribute with a default value, but don't change it, the value is lost after saving & reloading the scene.
I don't know if it's by design or not, but I do see the default value I set appear correctly in the attribute editor, so it's extremely confusing to have the attribute be wiped after reloading the scene.
Here's an all-in-one example:
The text was updated successfully, but these errors were encountered: