View Full Version : Getting/setting vertex position

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

08 August 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;

08 August 2006, 02:49 PM
thank you!

CGTalk Moderation
08 August 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.