
1. Re: creating a single variable from a simple formula
Mylenium Aug 21, 2012 2:05 AM (in response to Lewiz)Simply just use y. You are calculating a 1D value, so there's no need to address any subcomponents.
Mylenium

2. Re: creating a single variable from a simple formula
Lewiz Aug 21, 2012 2:15 AM (in response to Mylenium)Hi Mylenium, thanks for your fast answer. I tried both
veloc = 3;
amplitude = 5;
decay = 0;
y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
[y[1]]
and
veloc = 3;
amplitude = 5;
decay = 0;
y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
y[1]
but it's a big nogo still. I am really not getting the logic of the format. AE reports Class 'Number' has no property or method named '1', or that the outcome should be of dimension 2, not 1. Any more ideas?

3. Re: creating a single variable from a simple formula
Mylenium Aug 21, 2012 2:19 AM (in response to Lewiz)You misunderstand. y is a 1D variable:
[value[0],y]
That's al lyou need.

4. Re: creating a single variable from a simple formula
Lewiz Aug 21, 2012 2:38 AM (in response to Mylenium)Holy Tortellini.
I knew it would be simple, but this simple... So I understand that [value[0]] just picks the current value of the current parameter like being an array of two (2D) or three (3D) values: [0] for x, [1] for y and [2] for z. [0] just stands for the first value in this array, right? And then the y is already a determined value so it doesn't need any extra sh*t around it. (Excuse me).
Well, great! Thanks a lot! I am starting to get the picture here  slowly. Cheers mate!

5. Re: creating a single variable from a simple formula
Mylenium Aug 21, 2012 2:42 AM (in response to Lewiz)Yepp, multidimensional property streams are enumerated arrays and you adress individual subsets with their component index. No array, no hocuspocus.
Mylenium

6. Re: creating a single variable from a simple formula
BenjaminMarkus Aug 21, 2012 10:48 AM (in response to Lewiz)In the future you can also check out the After Effects Expressions Forum: http://forums.adobe.com/community/aftereffects_general_discussion/aftereffects_expressions ?view=discussions
Also, Dan Ebberts website is a very good resource for learning the basics of expressions: http://www.motionscript.com/