ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Simple scale expression but "Error: array piece can't expand to more that 1 value"

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brice Munn
Simple scale expression but "Error: array piece can't expand to more that 1 value"
on Feb 14, 2020 at 1:18:31 pm
Last Edited By Brice Munn on Feb 14, 2020 at 1:33:14 pm

Am I going mad? I've applied to following expression to shape layer/group/transform/scale.

I get "Error: array piece can't expand to more that 1 value" on the first line.

If I arrange the expression to have [x,100]; on line one, and delete h=100; it works but x and y scale are returned as the slider multiplied with a wiggle (different wiggle for each).

Curious as to what's up with this.

a=effect("Progress bar scale animation")("Slider")/100;
w=wiggle(50,100);
x=a*w;
h=100;

[x,h];




**Edit with solution**
Answered my own question here, realised wiggle was returning an array. To fixed expression is (with some streamlining to remove the slider effect) is:

Y=value[1];
X=value[0]/100;
W=wiggle(50,100)[0];

[X*W,Y];


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]