just to make sure, I don't cause any confusion, that you convert your
perc to a 0-1 range instead of 0-100
for your second q, you could do a find child op if you wish to
explicitly get that object by its name.
myCurve = ActiveSceneRoot.FindChild
("crvlist1").ActivePrimitive.Geometry.Curves(0)
that will enable you to do
perc = myCurve.GetPercentageFrom(3.0)
Greg
On Mon, 2006-06-05 at 13:17 -0400, Joey Ponthieux wrote:
> Hello,
> I'm trying to get the distance along a path/curve that a specific knot
> lies. I can do this via:
>
> percentage =
> Selection(0).ActivePrimitive.Geometry.Curves(0).GetPercentageFromU(3.0)
>
>
> This will effectively return the U distance between the start and end of
> the curve for the 4th knot of the curve.
>
>
> However, I'd like to be able to do this by defining the specific curve
> without using the selection Object, something like:
>
> percentage = crvlist1.GetPercentageFromU(3.0);
>
>
> but this does not work. Is there a way to accomplish this, preferrably
> using the OM?
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi