I don't know of any way to get defaults for non-numeric attributes without 
using the API.

As for the .ma file syntax, there is a method of MPlug called getSetAttrCmds() 
which returns a list of setAttr commands in the format that they appear in a 
mayaAscii file. It has three filters for selecting which attributes to return: 
All, NonDefault, and Changed.

On Monday, February 25, 2013 1:52:28 PM UTC-8, Macbeth R. wrote:
> How can I get a list of attributes from a node wich hold non-default values 
> only??
> In other words how can I get only the attributes who had been changed when 
> the node was created?
> 
> I realize there is 
> cmds.attributeQuery(attribute, node=mayaNode, listDefault=True)
> 
> But that function Cannot return the default value of non-numeric attributes.
> 
> What if I need the default value for string attributes and enum also?
> 
> Anyway, I don't really need the default value, I just want it to compare the 
> default value against the actual value to see if it has been changed, is 
> there any other option in Maya that does this already? 
> cmds.listAttr(inUse=True) is not working.
> 
> When you save the shading network with Maya "export selected network".
> And then opening the .ma file, I realize that only the non-default value 
> attributes are stored, how does maya achieve this?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To post to this group, send email to python_inside_maya@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to