Re: [Scripting] XSIMath Question

Date : Wed, 31 May 2006 20:18:14 -0700
To : XSI(at)Softimage.COM
From : "Ben Barker" <ben.barker(at)gmail.com>
Subject : Re: [Scripting] XSIMath Question
You can .setTranslation straight on the transform with your first point.
Set Scaling straight up to 1,1,1 (I'm assuming that's OK).
Make sure your X and Y points are SIVector3's.
Then subtract your X vector and your Y vector from your first point (x.subInPlace(x , first point) ) 
and normalize them (x.normalizeinPlace),
and use z.cross(x,y) to get your z vector. 
Then you can SetRotationFromXYZAxes on the transformation and give it your x,y, and z vectors.

 
On 5/31/06, brad <brad(at)cg-soup.com> wrote:
Let's say I have 3 global position coordinates and I need to convert them into a single Global SITransform Object.
The first point will be the location of the transform, the second point will be the direction my x-axis points at, and the third point will be the direction my y-axis points at.

What is the quickest and easiest way to calculate this using existing XSIMath Objects?

-Brad
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi



--
Ben Barker
Hair/Fur
Omation

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.