-
dynamic wiggler not so dynamic
Ok, I’m not sure what I’m doing wrong, but I got this wiggler expression I made to work on any comp size, but wiggle() won’t accept the values I’m trying to use. The only thing I can think of is I’m not restricting wiggle() correctly, but I proved that wasn’t it. here it is:
width=thisComp.width/2;
height=thisComp.height/2;
freq=2;
w=wiggle;
x=w(freq,width)[0];
y=w(freq,height)[1];
[x,y]I didn’t move the object at all, just wrote this on position of a NTSC standard comp size and it only wiggles about 10 pixels u/d l/r
So I tried this:width=360;
height=240;
freq=2;
w=wiggle;
x=w(freq,width)[0];
y=w(freq,height)[1];
[x,y]and that doesn’t work, but this works like a charm:
freq=2;
w=wiggle;
x=w(freq,360)[0];
y=w(freq,240)[1];
[x,y]x_x how can I get it to let me use the comp’s size values to affect the wiggle?
Darren