RV: Scripting Experts: can 't use Setkeys with my own array 2004-02-12 - By Juan Lara
Back Hi!
The array elements must be even number . The odd numbers are a frame and the even numbers are key's value.
You write:
myOwnArray = Array(10, 20, 2, 10) oFCurve.SetKeys( myOwnArray )
Juan.
-- --Mensaje original-- -- De: owner-xsi@(protected) [mailto:owner-xsi@(protected)] En nombre de Sebastian Faber Enviado el: mi�rcoles, 11 de febrero de 2004 20:37 Para: XSI@(protected) Asunto: Scripting Experts: can't use Setkeys with my own array
Hi guys,
I try to use SetKeys with my own defined array. this is the example I found in the docs:
set oRoot = Application.ActiveProject.ActiveScene.Root set oNull = oRoot.AddNull() set oPosx = oNull.Posx set oFCurve = oPosx.AddFCurve()
oFCurve.SetKeys( Array( 1, 10, 2, 20, 3, 30 ) )
now I tried to define my own array
myOwnArray = Array(10, 20, 2) oFCurve.SetKeys( Array( myOwnArray ) )
But this causes an Error. Does anybody knows how to get it work? I tried different kind of syntax but without having success.
thanks in advance...
Sebastian
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|