  | | | Linked Params in Actions vs Python | Linked Params in Actions vs Python 2005-05-03 - By Patrick Boucher
Back Hello all,
In a scene I have Actions that contain linked parameters. I need to get to these linked params through scripting but my script triggers errors in XSI. Here is a simplified version of it:
-- --- Start Script -- --- Application.SelectObj("Sources.Animation.Model.SpherePosY", "", "")
for i in Application.Selection: for s in i.SourceItems: Application.LogMessage(s.Type) Application.LogMessage(Application.ClassName(s)) Application.LogMessage(s.Active) Application.LogMessage(s.Target) src = s.Source Application.LogMessage(s.Type) -- --- End Script -- ---
The code dies on the line before last. If the source is an FCurve instead of an expression (linked param) it works allright.
A test scene describing the issue is available at http://www.buzzimage/~patrickb/L_Fcv_Bug.zip
Any ideas???
-- Patrick Boucher TD - Coder - Resident geek Buzz Image Group Tel 514.848.0579 Fax 514.848.6371
www.buzzimage.com www.xsi-blog.com --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |