Forum Replies Created

  • Nadav Rock

    July 12, 2019 at 11:18 am in reply to: how to freeze frame by script?

    works thanks

  • hi i tried placing values in you script but couldnt get it to work. can you give me an example start to finish how would it look completed for me to just change the mask points i want it to apply to?

  • Nadav Rock

    October 5, 2017 at 3:02 am in reply to: getting mask points x and y values

    solved using code

    var preExpression = true;
    var xy = app.project.item(3).layer(1).transform.position.valueAtTime(1, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy2 = app.project.item(3).layer(1).transform.position.valueAtTime(2, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy3 = app.project.item(3).layer(1).transform.position.valueAtTime(3, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy4 = app.project.item(3).layer(1).transform.position.valueAtTime(4, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy5 = app.project.item(3).layer(1).transform.position.valueAtTime(5, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy6 = app.project.item(3).layer(1).transform.position.valueAtTime(6, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy7 = app.project.item(3).layer(1).transform.position.valueAtTime(7, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy8 = app.project.item(3).layer(1).transform.position.valueAtTime(8, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy9 = app.project.item(3).layer(1).transform.position.valueAtTime(9, preExpression); // returns an array of 2 or 3 [x,y,z]
    var xy10 = app.project.item(3).layer(1).transform.position.valueAtTime(10, preExpression); // returns an array of 2 or 3 [x,y,z]

    var randomname = Number(new Date());
    var filepath = “~/Desktop/” + randomname + “.txt”;
    var outfile = File(filepath);
    outfile.open(‘a’);
    if (outfile !== ”) {
    outfile.writeln(xy);
    outfile.writeln(xy2);
    outfile.writeln(xy3);
    outfile.writeln(xy4);
    outfile.writeln(xy5);
    outfile.writeln(xy6);
    outfile.writeln(xy7);
    outfile.writeln(xy8);
    outfile.writeln(xy9);
    outfile.writeln(xy10);
    outfile.close();
    }

  • Nadav Rock

    September 24, 2017 at 9:15 am in reply to: how to set value at time of rotation in extend script

    didnt work for me.

    but i didnt solve it using

    var x1r = app.project.item(3).layer(“Pre-comp 3”).property(“Transform”).property(“Rotation”)

    x1r.setValueAtTime([0], [360]);

    thanks anyway dan you legend you still helping people in 2017

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