Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Extend Script Enable Stopwatch

  • Extend Script Enable Stopwatch

    Posted by Ben Mcghee on November 2, 2019 at 9:45 am

    Hi,

    I am wondering if it is possible to enable a properties stopwatch via extended script. I have a script that adds a number of effects and manipulates their properties but I would like it to then enable certain stopwatches. For instance for position, for my selected layers so that when I drag the shapes around it will keyframe.

    I have already looked in the documentation but couldn’t seem to see where this command was?

    Any help would be great!

    Oleg Pirogov replied 6 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Oleg Pirogov

    November 2, 2019 at 3:33 pm

    The enabled stopwatch simply indicates that the property has keyframes, so to enable it you’ll have to add some keyframes.

    If I understand you correctly and you want your script to change a value of a certain property so that that value is assigned to a keyframe (which will enable the stopwatch), then you would want to use setValueAtTime instead of just setValue.

    For instance, the script eqivalent of toggling on the stopwatch of some property is:
    YOUR_PROPERTY.setValueAtTime(activeItem.time, YOUR_PROPERTY.value);

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