creating a single variable from a simple formula
hi guys,
i'm ploughing way through basics of expressions, running syntax errors still haven't found out logic behind all. still great mystery me when use spaces, [ ] { } , ( ) not mention =.
i trying create variable called "y" simple formula. scripting looks like:
veloc = 3;
amplitude = -5;
decay = 0;
y = amplitude*math.sin(veloc*time)/math.exp(decay*time);
[value[0],y[1]]
but whatever brackets , things put around formula, whatever spaces or newlines, somehow ae doesn't accept it. when replace formula wiggle, fifth line accepted, , when replace "y" in fifth line "value" there no errors, ae considers formula not valid. difference between output wiggle(,) gives , output of formula? how should write expression? there website resource logic behind bracket, spacing, newline, order etc. of script language demystified? , mean @ basic, baby level. pretty @ maths, programming hieroglyphs , secret rules still don't make sense me.
any greatly, appreciated.
simply use y. calculating 1d value, there's no need address sub-components.
mylenium
More discussions in After Effects
adobe
Comments
Post a Comment