  | | | Scripting-question: how to get the absolut position of an object wich is def | Scripting-question: how to get the absolut position of an object wich is def 2004-02-14 - By Sascha Robitzki
Back Why not evaluate the position from curve percentage? Hopefully this is what you want. Here is a demo scene: www.renderregion.com/demoScene.zip
set oRoot = Application.activeproject.activescene.root set oCurve = oRoot.FindChild("crvlist")
v = getValue("cube.polymsh.crvdeform.poscurve")
if(v >= 0 AND v <= 10) then aValues = oCurve.ActivePrimitive.Geometry.Curves(0).EvaluatePositionFromPercentage (v*10) set oPos = aValues(0) logmessage oPos.x & ", " & oPos.y & ", " & oPos.z else logmessage "out of range" end if
Cheers Sascha
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf > Of Sebastian Faber > > Sent: February 13, 2004 1:16 PM > To: XSI@(protected) > Subject: Scripting-question: how to get the absolut position of an > object wich is defomed on a curve? > > > How can I get the absolut position of an object which is deformed on a > curve? As everybody knows - the deformation is a matrix transformation > of the coordinate system. I suppose there is a (easy) way (without > rebuliding the matrix-transformation by hand) to get the absolut > position (x,y,z -values). > > Sebastian > > > > > LIGA_01 COMPUTERFILM GmbH > Sebastian Faber > Landwehrstrasse 60 > D - 80336 Munich - Germany > > sebastian.faber@(protected) > www.liga01.com
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |