-
“array piece can’t expand to more than one value”
I’m trying to wiggle the x, y, and z values of a null separately. Also, I’m pulling the initial values of x and y from another source, but I get this error message:
After Effects warning: array piece can’t expand to more than one value
Expression disabled.Error occurred at line 0.
Comp: ‘Comp 1’
Layer: 1 (‘grounding’)
Property: ‘Position’This is the code I’m trying to use:
x = thisComp.layer("CORE").effect("Form")("Postition XY")[0];
y = thisComp.layer("CORE").effect("Form")("Postition XY")[1];
z = thisComp.layer("CORE").effect("Form")("Position Z");
wa = effect("WiggleAmt")("Slider");
wf = effect("WiggleFreq")("Slider");
w = wiggle(wf, wa);
x = value;
y = w;
z = wiggle(1,100);
[x, y, z]I had this code split between two areas and it worked fine. i.e. I declared and wiggled x and y in one code.
x = effect("Form")("Postition XY")[0];
y = effect("Form")("Postition XY")[1];
wa = effect("WiggleAmt")("Slider");
wf = effect("WiggleFreq")("Slider");
w = wiggle(wf, wa);
x = value[0];
y = w[1];
[x, y]Then in a separate area wiggled z.
wiggle(1,100)How do I successfully put all of the code into one bunch?
Originally, I just had the wiggle code applied directly to the effect’s attributes, but I’m trying to apply the code to a null so that I can link to the values with multiple instances of the effect.
x = thisComp.layer("CORE").effect("Form")("Postition XY")[0];
y = thisComp.layer("CORE").effect("Form")("Postition XY")[1];
z = thisComp.layer("CORE").effect("Form")("Position Z");
wa = effect("WiggleAmt")("Slider");
wf = effect("WiggleFreq")("Slider");
w = wiggle(wf, wa);
x = value;
y = w;
z = wiggle(1,100);
[x, y, z]