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?
 
RV: Scripting Experts: can 't use Setkeys with my own array

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