View Full Version : how to query the cvs u-value on a curve
Fronat 03-11-2008, 12:33 PM Anyone have an ide how to query an cvs uvale on a curve?
i need to do this without using plugins like "closestPointOnCurve".
i want to create a curve based on some motion like a particle or so
and then allpy a motionpath for an object and set keys on the uvalue
to match the original motion....but i need to query the points on the curve
to do this.
Tanx.
|
|
unsmoothed
03-11-2008, 03:54 PM
Hi... if you dont want to use to much extra mel and as the CVs don't sit right on the curve, you can get an approximation of where the CV sits along the length of the curve using,
(cvNumber/(spans+1)) * spans
where cvNumber is the 0 based cv index you are querying and spans is the span attribute of the curve.
close?
-uN
Fronat
03-12-2008, 11:55 AM
Tanx...
I solved it this way..... first i get the distance between all points in space
so i get the lenght of the curve ( arclen command wont give the same result ).
then i multiply them and divide 1 with the result. lets call it "$vurtualULenght"
then i take the distans per span ( $virtualUValue ) and multiply it by $virtualULenght.
since i created the cvs and curve from a objects position at a specific frame.
i can use the $virtualUValue for the motionpath att the same frame.
this gives my a really good result.
maybe i post the script when its finnished.
tanx :)
CGTalk Moderation
03-12-2008, 11:55 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.