PDA

View Full Version : Getting/setting vertex position


garbagemaker
08-07-2006, 03:55 PM
Very simple question.
How to get&set position of vertex in MEL?

Buexe
08-07-2006, 10:58 PM
use the xform command, for example:

create a polyCube and enter

xform -a -ws -t 0 0 0 pCube1.vtx[0];

if you want to knopw the position of a vertex:

float $vtxPos[3] = `xform -q -ws -t pCube1.vtx[0]`;
print $vtxPos;

garbagemaker
08-10-2006, 02:49 PM
cool,
thank you!

CGTalk Moderation
08-10-2006, 02:49 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.