Re: [script] Comparing two transforms

Date : Sat, 13 Jan 2007 19:13:52 +1030
To : XSI(at)Softimage.COM
From : benp <benp(at)rsp.com.au>
Subject : Re: [script] Comparing two transforms
almost one line??
(with 2objs selected)

ap =Application
log = ap.LogMessage
sel = ap.Selection
log( sel(0).Kinematics.Global.Transform.Matrix4.Get2() == sel(1).Kinematics.Global.Transform.Matrix4.Get2() )


Bernard Lebel wrote:
Hello,

Is there a quick way, say a one-liner, to determine if two transforms
hold the same values?

I have two objects, I just want to know if they have the same
transforms. If they do, then do something. If not, do something else.


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


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.