Re: Knot distance on path
| Date : Mon, 5 Jun 2006 14:33:24 -0400 |
| To : <XSI(at)Softimage.COM> |
| From : "Robert Moodie" <robertm(at)hybride.com> |
| Subject : Re: Knot distance on path |
Joey,
You need to use Dictionary.GetObject to turn the
string (your curve by name) into an object.
e.g.
oCurvePrim = Dictionary.GetObject(
"TestCurve.crvlist" )
percentage = oCurvePrim.Geometry.Curves(0).GetPercentageFromU(3.0);
LogMessage (percentage);
_rob
----- Original Message -----
From: "Joey Ponthieux" <j.g.ponthieux(at)LaRC.NASA.GOV>
To: <xsi(at)Softimage.COM>
Sent: Monday, June 05, 2006 1:17 PM
Subject: Knot distance on path
> 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?
>
> --
>
> Joey Ponthieux
> NCI Information Systems Inc.
> NASA Langley Research Center
> ____________________________________________________________
> Opinions stated here-in are strictly those of the author and
> do not represent the opinions of NASA or any other party.
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
- References:
- Knot distance on path
- From: Joey Ponthieux <j.g.ponthieux(at)LaRC.NASA.GOV>
- Knot distance on path
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: Knot distance on path
- Next by Date: Re: Knot distance on path
- Previous by Thread: Re: Knot distance on path
- Next by Thread: Re: Knot distance on path
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |