no random ?!?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
cardeiro
Posts: 31
Joined: March 27th, 2006, 2:03 pm
Location: philadelphia, PA
Contact:

cant believe I've never noticed this before. There does not appear to be a random function in the scripting language. Is this true, or am I an idiot (I did search the entire manual for it)
Last edited by cardeiro on March 19th, 2010, 8:52 am, edited 1 time in total.
Mike Cardeiro
------------------------------
Animator - Designer
D4 Creative Group
Philadelphia, PA
------------------------------
cardeiro
Posts: 31
Joined: March 27th, 2006, 2:03 pm
Location: philadelphia, PA
Contact:

so heres the ugly hack I came up with. I create a slider on my layer, put an expression with a random number generator, read valueAtTime for the slider at frame 1, if I need another, read it at frame 2 and so on, then remove the slider.

ugly but it works...still cant beleive theres no random in aeScript.
Mike Cardeiro
------------------------------
Animator - Designer
D4 Creative Group
Philadelphia, PA
------------------------------
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

Scripting has access to JavaScript's Math.random().


Dan
cardeiro
Posts: 31
Joined: March 27th, 2006, 2:03 pm
Location: philadelphia, PA
Contact:

Dan Ebberts wrote:Scripting has access to JavaScript's Math.random().


Dan

boy do I feel silly. thanks Dan, I was just calling random() like you can with expressions.
Mike Cardeiro
------------------------------
Animator - Designer
D4 Creative Group
Philadelphia, PA
------------------------------
Post Reply