RE: Getting SITransform objects from component clusters

Date : Sat, 6 Oct 2007 08:17:09 +0100
To : <XSI(at)Softimage.COM>
From : "kim aldis" <xsi(at)kim-aldis.co.uk>
Subject : RE: Getting SITransform objects from component clusters

Is the reference frame even stored for clusters? You can’t key them or anything so there doesn’t seem any real reason to keep them hanging around.

 

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Bradley Gabe
Sent: 05 October 2007 22:42
To: XSI(at)Softimage.COM
Subject: Re: Getting SITransform objects from component clusters

 

I'm doing it the null way at the moment, but I need to convert this over to a scripted op and want better performance.

 

Sigh, if only there was a GetLocalReferenceFrame(cluster) method.

 

On 10/5/07, Steven Caron <carons(at)gmail.com> wrote:

i dont know about fast, but i just made a script that uses objectocluster constraint to constrain a null to a user defined cluster. enables the tangency and normal options. then using MapWorldPoseToObjectSpace to put the null's transform in the object's space. then reference that transform

i looked briefly at the pointlocators, i might be wrong but you could try GetSurfacePointLocatorsFromPoints() using the point indices of the cluster. then evaluate the positions and then normals and build your transform from that.

steven

 

On 10/5/07, Bradley Gabe <withanar(at)gmail.com > wrote:

If I have a pointer to, say, a polygon cluster, what is the quickest way performance-wise to get an SITransformation object for that cluster's local reference frame?

 

I'm having no luck hunting this down in the SDK docs.

 

Thanks!

 

 


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.