Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions how to set value at time of rotation in extend script

  • how to set value at time of rotation in extend script

    Posted by Nadav Rock on September 22, 2017 at 8:27 am

    i know how to set value at time of scale, opacity and position, but for some reason rotation doesnt work for me.

    i write scale for example as

    var x1s = app.project.item(3).layer(1).property(“ADBE Transform Group”).property(“ADBE Scale”);

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

    but when i write rotation as

    var x1r = app.project.item(3).layer(1).property(“ADBE Transform Group”).property(“ADBE Rotation”);

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

    it doesnt work. anybody knows why?

    Nadav Rock replied 8 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 22, 2017 at 3:57 pm

    Try it this way:

    x1r.setValueAtTime(0, 360);

    (you don’t need the brackets for one-dimensional values)

    Dan

  • Nadav Rock

    September 24, 2017 at 9:15 am

    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