PDA

View Full Version : find UV from point in curve on surface


gmask
08-24-2008, 05:07 PM
I have a curve on a surface and I want to retreive the UV values from the surface based on the location of a point on that curve.

If I have a CV all I need to get this info is getAttr "curve1.cv[0]" but I want to get the UV position from a point selected by it's u value on the curve.

for example my selection is:

select -r nurbsPlaneShape1->curve1.u[0.681593757639773] ;

visualfx
08-24-2008, 11:20 PM
float $uv[] = `pointPosition -local "nurbsPlaneShape1->curve1.u[0.681593757639773]"`;

$uv[0] = surface U coord
$uv[1] = surface V coord
$uv[2] = Unused or 0.0

gmask
08-24-2008, 11:26 PM
tanks alot!

CGTalk Moderation
08-24-2008, 11:26 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.