Forum Replies Created

  • Yes, that did it. Thank you so much. Nearly every example I saw online had it something like myComp.layer(1).transform.position + [5,2]; So frustrating ha.

    Thank you again, you rock.

  • Okay, I will. Thank you for the link.

  • Ah sure thing, here is the entire While Loop it is in, nothing outside of it should affect it:


    var myComp;
    //Read lins of text. Create a new comp and text layer for each line
    var text;

    while(!myFile.eof)
    {
    text = myFile.readln();
    if(text == "") text = "r";

    myComp = app.project.items.addComp(text,compW,compH,1,compL,compRate);

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Set the text layer
    var tl = myComp.layers.addText(text);
    var tltxt = tl.property("ADBE Text Properties").property("ADBE Text Document");
    var txt = tltxt.value;
    txt.font = "Verdana";
    tltxt.setValue(txt);
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var precomp = myComp.layers;

    precomp.precompose([1],text + "precomp");
    myComp.layer(1).duplicate();
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Add Fill Effect
    layerProperties = myComp.layer(2);
    layerProperties.Effects.addProperty("Fill");
    layerProperties.Effects.property("Fill").property("Color").setValue([0,0,0]);

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Add the offset

    //layerProperties.transform.position + [5,2];
    myComp.layer(1).transform.position + [5,2];

    }

  • This is just the line of error. There is no division in the entire script though.

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