View Full Version : curve point world position Query
02 February 2005, 10:51 AM
how do I query a world position of
02 February 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=translate on x, $translate=translate on y and $translate=translate on z
02 February 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...
02 February 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
02 February 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.