Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Linked Params in Actions vs Python

Linked Params in Actions vs Python

2005-05-03       - By Martin Barrette

 Back
Reply:     1     2     3     4     5  

Hi,
 The AnimationSourceItem.Source works with StaticValue,FCurve or ShapeKey
(since 4.0) only. This is mentioned under Return value for this method...it
could be clearer. Unfortunately, I think you would have to apply the action to
get to the expression, unless I'm forgetting about another avenue.

Martin

-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf
Of Patrick Boucher
Sent: Tuesday, May 03, 2005 6:02 PM
To: XSI@(protected)
Subject: Linked Params in Actions vs Python


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

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi