PDA

View Full Version : query compound attr in mel


katisss
07-02-2008, 03:10 PM
What is the syntax for query a compound attribute in mel (i.e. shape.pnts)?
i can do listAttrs shape.pnts and it returns pntx, pnty , pnty but how do i ask the values now? getAttr shape.pnts.pntx doesnt work nor does getAttr shape.pntx?

digitalandrew
07-02-2008, 04:15 PM
hello,

you need to specify the point index aswell...

getAttr pCube1.pnts[3];

this will return the x y z all together.

cheers,
-a

katisss
07-02-2008, 08:05 PM
thanks for your helpful reply.

CGTalk Moderation
07-02-2008, 08:05 PM
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.