View Full Version : Move plane to vertex

12 December 2012, 10:44 AM
Hi guys, I'm struggling to get this code to work. Basically I want to move pPlane2 to the vector coords on the sphere. It's giving me some error and I can't find what I'm doing wrong. Any idea? :shrug:

vector $vec = `pointPosition pSphere1.vtx[216]`;

$dispVec = <<$vec.x,$vec.y,$vec.z>>;

print $dispVec;
select -r pPlane2;
move -a $dispVec;

12 December 2012, 06:33 PM
Solved :P

float $vtxPos[] = `xform -q -ws -t pSphere1.vtx[238]`;
print $vtxPos[1];
select -r pPlane2;
move -a $vtxPos[0] $vtxPos[1] $vtxPos[2];

CGTalk Moderation
12 December 2012, 06:33 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.