no random ?!?
Moderator: Paul Tuersley
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
------------------------------
------------------------------
Animator - Designer
D4 Creative Group
Philadelphia, PA
------------------------------
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.
ugly but it works...still cant beleive theres no random in aeScript.
Mike Cardeiro
------------------------------
Animator - Designer
D4 Creative Group
Philadelphia, PA
------------------------------
------------------------------
Animator - Designer
D4 Creative Group
Philadelphia, PA
------------------------------
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
Scripting has access to JavaScript's Math.random().
Dan
Dan
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
------------------------------
------------------------------
Animator - Designer
D4 Creative Group
Philadelphia, PA
------------------------------