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?
 
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
Reply:     1     2     3     4     5  

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