Scripting Animation Layers part 3

Date : Wed, 15 Aug 2007 19:55:29 -0700
To : xsi(at)Softimage.COM
From : "Steven Caron" <carons(at)gmail.com>
Subject : Scripting Animation Layers part 3
i am continuing where andre left off...

i have an object that is animated using layers. i am trying to access one of the parameter's source method. with layers it returns the mixer on that model. but with the base layer active i still get the mixer. i need to be able to get the fcurve  of the base layer for that parameter.

animate an object with at least one layer... this code will log "Mixer" regardless of active layer... so how do i get my baselayer animation??

#######
#imports
import win32com.client
from win32com.client import constants
   
#globals
xsi    = win32com.client.Dispatch( "XSI.Application" ).Application
xsiPrint = xsi.LogMessage

animatedObject = xsi.Selection(0)

#returns mixer regardless of active layer
mixer = animatedObject.Kinematics.Local.posx.source
xsiPrint(mixer)
#######

steven


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.