Re: Knot distance on path

Date : Mon, 05 Jun 2006 11:16:01 -0700
To : XSI_MailingList <XSI(at)Softimage.COM>
From : Greg Smith <greg(at)stanwinston.com>
Subject : Re: Knot distance on path
I image what you can do is take your percentage and mult that with the
length of your curve which can be retrived very similar to how you got
your perc: 
myLengh = Selection(0).ActivePrimitive.Geometry.Curves(0).Length

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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.