PDA

View Full Version : Get coordinate information of a selected point on a curve


enygma
10-10-2007, 07:04 PM
I'm trying to put together some lines, but I want to be able to get the coordinate information of either the selected point on a curve or a specified point (like curve1.ep[1]). What command would I use to achieve this?

Derek Wolfe
10-10-2007, 07:11 PM
use:


xform -q -t -ws curve1.ep[1];

Returns a float array of the worldspace x, y, z values of the ep.

enygma
10-10-2007, 07:12 PM
Awesome. Thanks. Appreciate it.

strarup
10-24-2007, 10:54 AM
Hi,

you can also use the cmd pointPosition... which by default gives the ws position...

pointPosition curve1.ep[1]; or
pointPosition -w curve1.ep[1]; //gives world space coordinates...
pointPosition -l curve1.ep[1]; //gives local space coordinates
regards

Strarup

CGTalk Moderation
10-24-2007, 10:54 AM
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.