ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Move CTI by script?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Emre Mutlu
Move CTI by script?
on Jun 8, 2020 at 12:45:45 pm

Hi there,

I wonder if it's possible to move CTI in project with script? I can set a value with app.project.activeItem.time but can't move it. Is it possible? I want to move 5 frames forward when a button clicked.


Return to posts index

Dan Ebberts
Re: Move CTI by script?
on Jun 8, 2020 at 2:25:39 pm

This seems to work:

var myComp = app.project.activeItem;
myComp.time += 5*myComp.frameDuration;


Dan



Return to posts index

Emre Mutlu
Re: Move CTI by script?
on Jun 8, 2020 at 7:01:13 pm

Thank you very much Dan.


Return to posts index

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