FORUMS: list search recent posts

Extend Script Enable Stopwatch

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ben McGhee
Extend Script Enable Stopwatch
on Nov 2, 2019 at 9:45:12 am


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!

Return to posts index

Oleg Pirogov
Re: Extend Script Enable Stopwatch
on Nov 2, 2019 at 3:33:15 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);

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved