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