Mar 2010
1 / 5
Mar 2010
Mar 2010

Hi,

I am trying to make a boolean attribute that shuold not be saved when file is saved. But, it seems it is not working because maya turns that attribute into storable once I reopen the file. Any idea about this?

Thanks

Use the api, theres little reason for the mel one to work altough it is valid.

I just want to create something that should not be saved with file. It can be anything. I thought -storable was going to work, but it seems it does not work. I am just not convinced that I should use API for this one.

I am just wondering if -storable works with a certain type of attribute. And I am also confused as to what exactly -storable false does.

Well thing is mel is not supposed to have all areas access to maya. Custom added attributes dont have full maya proviligies.

I am just wondering if -storable works with a certain type of attribute

No its just meant for use with nodes that have a internal compute thet caches something, since mel is not going to do this kind of stuff ever. So theres no big reason why it should work. Either way thi is a sort of bug, since added attributes are by default storable but nonstorable attributes flags wont gat stored so it will be a nromal attribute once it gets back.

Truly the only way to do this proper is to use the api, and the only OTHER way to do it is even stupider ad is going to cost you much more headaches more code and so on. But then youd need your own node type.

  I am just not convinced that I should use API for this one.

Neither am I that you should be doing this at all. But i digress theres no way around this no matter what you try. Just stupid and very costy workarounds.

Clarification:

-storable means the attribute wont be stored, the attribute add will not be stored either. So the attribute will dissapear the next time you open the scene. Unless you connect it to something... In wich case maya can act weird.