-
Conditionals and wiggle on two dimensions
Hi,
I’m trying to use the expression below to control the scale of one layer when a person is talking, but it breaks every time it runs, the errors are:
Array piece can’t expand to more than one value when I finish the expression with [x,x] and
Expression result must be if dimension 2, not 1 if I change the end to x.
The idea is to have the layer scale and shake when the person talks and still when the person is quiet.
Can anyone help?
s=thisComp.layer("hostess").effect("Both Channels")("Slider");if
(s>=5)
{
x=(wiggle(2,10));
}
else
{x=100;
}
[x,x]
;