Re: setting rotations

Date : Mon, 29 Oct 2007 19:42:21 -0500
To : XSI(at)Softimage.COM
From : "Bernard Lebel" <3dbernard(at)gmail.com>
Subject : Re: setting rotations
I could be wrong, but I've never succeeded in setting rotations that
way (through property assignment). I always had to use the
SetRotation() method.


Cheers
Bernard



On 10/29/07, Steven Caron <carons(at)gmail.com> wrote:
> i am trying to figure out with this little bit of my script doesn't work...
> i create an empty rotation and try to set an object's rotation equal to it.
> essentially zeroing it out. no error logged. where is the failure in my
> logic?
>
> #imports
> import win32com.client
> from win32com.client import constants
>
> #globals
> xsi    = win32com.client.Dispatch( "XSI.Application" ).Application
> xsiPrint = xsi.LogMessage
>
> rot = XSIMath.CreateRotation()
> xsi.Selection(0).Kinematics.Local.Transform.Rotation = rot
>
---
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.