ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

how to set value at time of rotation in extend script

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
nadav rock
how to set value at time of rotation in extend script
on Sep 22, 2017 at 8:27:14 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?


Return to posts index

Dan Ebberts
Re: how to set value at time of rotation in extend script
on Sep 22, 2017 at 3:57:27 pm

Try it this way:

x1r.setValueAtTime(0, 360);


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


Dan



Return to posts index

nadav rock
Re: how to set value at time of rotation in extend script
on Sep 24, 2017 at 9:15:05 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


Return to posts index

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