ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Error: index 1 out of range for stream of dimension 1

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
aniello ferrone
Error: index 1 out of range for stream of dimension 1
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


Return to posts index

aniello ferrone
Re: Error: index 1 out of range for stream of dimension 1
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
http://www.fanpage.it


Return to posts index

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