write expression result to a text box
Hi
I have been doing some very simple expressions like this to generate sin waves and add them. It works fine.
vel=100;
amp=50
freq1 =1; freq2=0.9; freq3=1.1;
x=time*vel;
wave1=Math.sin(freq1*time*2*Math.PI);
wave2=Math.sin(freq2*time*2*Math.PI);
wave3=Math.sin(freq3*time*2*Math.PI);
y= amp*(wave1+wave2+wave3)+thisComp.height/2-300;
[x,y];However, I would like to be able to have the value for y visible on the stage and updating as the animation goes on. I can't seem to find out how to do this. I guess it is something to do with dynamic text - but I can find how to set the styling but not how to set the actual value of the text.
Maybe I am using the wrong search terms.... Could someone please point me in the right direction?
Many thanks
