PDA

View Full Version : curve point world position Query


alesmav
02-28-2005, 10:51 AM
hey!

how do I query a world position of

curve1.u[0.2]?

ALES

cpan
02-28-2005, 11:09 AM
always to get/set the translate, rotate, scale attributes for anything use xform command.
eg. to get the tx,ty,tz for curve1.u[0.2] in worldspace write

float $translate[] = `xform -q -ws -t curve1.u[0.2]`;
so $translate[0]=translate on x, $translate[1]=translate on y and $translate[2]=translate on z

alesmav
02-28-2005, 11:20 AM
thank yashu, I've tried that, but unfortunately the value returned is allways 0 0 0. Anyway, I've figured out how to do it. The trick is in the `pointOnCurve` command.
The solution for my problem is:

pointOnCurve -pr 0.5 -p curve1;

the x y z world coordinates are returned...

ALES

cpan
02-28-2005, 12:10 PM
hmmm glad you've got-it. Don't know why you get 0 0 0 cause it works for me, maybe you're missing the -ws flag

edit :: yeap xform doesn't work with point curve, only with movable things

CGTalk Moderation
02-28-2006, 01:00 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.