Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Get U-position of nurbs curve point?

Get U-position of nurbs curve point?

2004-06-18       - By Schoenberger

 Back
Reply:     1     2     3     4     5     6     7  



Then I would use the Knot point array to find the U position...



 >> -- --Original Message-- --
 >> From: owner-xsi@(protected)
 >> [mailto:owner-xsi@(protected)] On Behalf Of Aloys Baillet
 >> Sent: Friday, June 18, 2004 3:09 PM
 >> To: XSI@(protected)
 >> Subject: Re: Get U-position of nurbs curve point?
 >>
 >>
 >> Hello,
 >> I think you can't!
 >> The main reason is that control points are not on the
 >> curve, only knots are.
 >> I would advice you to use the GetClosestCurvePosition
 >> method of the
 >> NurbsCurveList object with the position of th control
 >> point : it will
 >> return you the u value.
 >> Good luck!
 >>
 >> --
 >> Aloys Baillet - R&D @ La Maison
 >> --
 >>
 >>
 >>
 >> Schoenberger wrote:
 >>
 >> >Hi
 >> >
 >> >I'm trying to get the position of a nurbs point on a curve.
 >> >Someting like a length from start of the curve to the point.
 >> >I have a little script, that does it, but I need
 >> something that works
 >> >with the object model.
 >> >What I have:
 >> >   GetCurvePercentageAtKnotIndex "crvlist", MyPointIndex, perc
 >> >   clength = GetCurveLength("crvlist")
 >> >   PostionOnCurve = clength*perc/100
 >> >
 >> >Now I want that result, but with the object model.
 >> >What I have found till now is:
 >> >.Geometry.length
 >> >.Geometry.curves(0).GetPercentageFromU
 >> >.Geometry.curves(0).ControlPoints
 >> >
 >> >
 >> >Perhaps I am stupid or missed something in the docs, but
 >> how to get the
 >> >U position of a Control point?
 >> >With the U position I could get the percentage and
 >> everything would be
 >> >fine.
 >> >
 >> >
 >> >Holger Sch�nberger
 >> >technical director
 >> >The day has 24 hours, if that does not suffice, I will
 >> take the night
 >> >
 >> >
 >> >
 >> >---
 >> >Unsubscribe? Mail Majordomo@(protected) with the
 >> following text in body:
 >> >unsubscribe xsi
 >> >
 >> >
 >> >
 >> >
 >> >
 >>
 >> ---
 >> Unsubscribe? Mail Majordomo@(protected) with the
 >> following text in body:
 >> unsubscribe xsi
 >>


---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi