View Full Version : API: list attributes

04 April 2006, 08:04 AM
Is there a wat to list all attributes of any MObject like MFnFluid for instance?
This is not a scripting or MEL question rather in the API.
I am looking for a way to get all the attributes of an object at once.

Robert Bateman
04 April 2006, 11:55 AM
yeah, MFnDependencyNode::attributeCount() and MFnDependencyNode::attribute() (MFnDependencyNode being the base class to all useful function sets). You'll need to attach the returned MObject to an MFnAttribute function set to get anything useful out of it. To get the actual values from the attributes, you'll need to use the higher derived function sets (MFnNumericAttribute, MFnMatrixAttribute etc).

CGTalk Moderation
04 April 2006, 11:55 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.