PDA

View Full Version : List object's attribute


noobmode
07-29-2012, 04:01 PM
Hi fella
I try to list object attribute base on some condition. Is there anyway to check what's type of that attribute is? Boolean,string,integer,enum....?

Thank

MMighe
07-29-2012, 04:42 PM
using the getAttr command and the -type flag together returns exactly the queried attribute type.

For example:

getAttr -type "polySphere1.radius";
// doubleLinear //

NaughtyNathan
07-29-2012, 10:14 PM
getAttr -type pCube1.translate;
// Result: double3 //

noobmode
07-30-2012, 02:06 AM
Thank Nathan XD

CGTalk Moderation
07-30-2012, 02:06 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.