Re: Scripting Animation Layers part 3

Date : Thu, 16 Aug 2007 09:31:22 +0200
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: Scripting Animation Layers part 3
I found the GetSource command which allows for a masking by source type:

GetSource(InputObjs, SourceMask)

eg:
var oTorus = ActiveSceneRoot.AddGeometry("Torus", "MeshSurface");
SaveKey(oTorus.PosX);
var oFCurve = GetSource(oTorus.PosX, siFCurveSource)(0);
LogMessage(oFCurve.Type);

Hope that helps, cheers!

   -André


Steven Caron wrote:
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


--- 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.