Adobe After Effects Expressions Forum
Error: index 1 out of range for stream of dimension 1
Error: index 1 out of range for stream of dimension 1
by aniello ferrone on Oct 10, 2019 at 11:01:22 am

Hi guys, need your help

I have this expression in the position of rectangle path

var s = thisComp.layer("Controller").effect("Text 01 Font Size")("Slider");
var ah = 1-thisComp.layer("Text 01").effect("Text Align Horizontal")("Slider")-0.5;
var av = 1-thisComp.layer("Text 01").effect("Text Align Vertical")("Slider")-0.5;
[s[0]*ah, s[1]*av];

why I'm getting this error?

Error at line 10 in property ‘Position’ of layer 3 (‘Frame 01’) in comp’2 - AUTO-RESIZE-BOX / ANCORAGGIO’
Error: index 1 out of range for stream of dimension 1

how can I solve it?

Thx so much in advance
Aniello


Re: Error: index 1 out of range for stream of dimension 1
by aniello ferrone on Oct 10, 2019 at 11:31:41 am

SOLVED:

'Var s' was wrong, i putted :

var s = thisComp.layer("Controller").effect("Text 01 Font Size")("Slider");

instead of

var s = effect("Frame Size")("Point");

I was distracted by the similar name ☺

Thanks

Aniello Ferrone
Viral Video Editor
www.fanpage.it





© CreativeCOW.net