Message 1 of 2
Completely reset attribute to default state

Not applicable
12-01-2017
07:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I would like to reset attributes to their default state such as they don't appear in saved file at all.
Thus, for each attribute I would need to get default value, default range, default keyable state, lock state and whatnot.
For default value, I tried attributeQuery -listdefaults but some plugins wont return the values.
I had more luck with MfnX_Attribute.default but had to implement it for each different attribute type.
Still have no solution for default "keyable" value and such.
I wish there was a simple "reset" method but could find one.
Is there any way to do this properly ?
Thanks