Or, less messy, store the transform, freeze transform, get length, re-apply
transform.
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
> Behalf Of Alexander Hemery
> Sent: 07 June 2007 14:34
> To: XSI(at)Softimage.COM
> Subject: Re: Curve length and scale
>
> Hi,
> how about a script that duplicates the curve, freezes scaling, runs
> GetCurveLength ..prints the result and then deletes the new curve ?
>
> Alex.
>
> ----- Original Message -----
> From: "Oz Adi" <oz(at)broadcast.co.il>
> To: <XSI(at)Softimage.COM>
> Sent: Thursday, June 07, 2007 2:45 PM
> Subject: Re: Curve length and scale
>
>
> > you can "fit" a new curve on it, which will create a scale 1 new
> curve,
> > and then print it's length.
> >
> > here's a little script to do so (jscript), select the curve and run
> it:
> >
> > /var oCrv = Selection(0);
> > var tempcurve = ApplyGenOp("CrvFit", "", oCrv, 3,
> siPersistentOperation,
> > siKeepGenOpInputs, null);
> > SetValue(tempcurve+".points", 100, null);
> > var newcurve = Selection(0);
> > logmessage (newcurve.ActivePrimitive.Geometry.Curves(0).length);/
> >
> > the SetValue line sets the number of points on the new fit curve, so
> if
> > you got a longer curve set this value up..
> > I am still learning scripting, so I jump on any simple opportunity to
> > write a stupid code :) hehe
> >
> > Oz.
> >
> >
> >
> >
> > Matt Lowery wrote:
> >> Hi all,
> >>
> >> does anyone know of a way to measure the length of a curve in xsi
> units
> >> that
> >> isn't dependant on the scale of the curve's centre?
> >>
> >>
> >> ---
> >> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> >> body:
> >> unsubscribe xsi
> >>
> >>
> >
> > ---
> > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> > unsubscribe xsi
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi