Re: [scripting] Adding an FCurve to a Linked Parameter via OM?

Date : Sat, 1 Dec 2007 15:28:19 -0500
To : XSI(at)Softimage.COM
From : "Bernard Lebel" <3dbernard(at)gmail.com>
Subject : Re: [scripting] Adding an FCurve to a Linked Parameter via OM?
I've ran into the same problem, but there was no direct solution.
Saving and loading a preset was the only way.


Cheers
Bernard



On Dec 1, 2007 1:22 PM, Julian Johnson <julian(at)exch.demon.co.uk> wrote:
> Amended Script (forgot to paste in the Cube):
>
> import win32com.client
>
> def disp(ob):
>   return win32com.client.Dispatch(ob)
>
> oRoot = Application.ActiveSceneRoot
> oCube = oRoot.AddGeometry( "cube", "MeshSurface" )
> oSphere = oRoot.AddGeometry( "sphere", "MeshSurface" )
> oParam = oSphere.Parameters('posx')
> oExpr = disp(oParam.AddExpression('l_fcv(cube.kine.local.posx)'))
> oFCurve = oExpr.Parameters('l_fcv').AddFCurve(20,)
> oFCurve.AddKey(0,0)
> oFCurve.AddKey(10,20)
>
>
> Julian
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
---
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.