Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Error: index 1 out of range for stream of dimension 1

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

    Posted by Aniello Ferrone on October 10, 2019 at 11:01 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

    Aniello Ferrone replied 6 years, 9 months ago 1 Member · 1 Reply
  • 1 Reply
  • Aniello Ferrone

    October 10, 2019 at 11:31 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy