FORUMS: list search recent posts

Get Markers info via scripting

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rainier Raydán
Get Markers info via scripting
on Apr 26, 2019 at 9:10:35 pm

Hi guys!

I have a layer with several markers. Is there any way to get those markers time and comment information?
I would like to get the time of every marker so I can use it to split the layer (I have a lot of those footage with markers...)

Thanks!


Return to posts index

Tomas Bumbulevičius
Re: Get Markers info via scripting
on Apr 27, 2019 at 6:40:07 pm

Hello Rainier, assuming you have scripting experience:
1. Where and in what form you want markers data to be retrieved?
2. Do you plan on processing/interpret the data on your own?

Find out more:
After Effects Tutorials: motion design, expressions, scripting.


Return to posts index

Rainier Raydán
Re: Get Markers info via scripting
on Apr 29, 2019 at 2:27:04 pm

Hi!

I just need to access to the time property of every marker via scripting. I know how to do it in expressions but I can't find anything about it on the scripting guide...


Return to posts index


Dan Ebberts
Re: Get Markers info via scripting
on Apr 29, 2019 at 4:45:35 pm

Here's a simple example to retrieve the times of the first comp marker and the first marker for layer 1:


var myComp = app.project.activeItem;
var myLayer = myComp.layer(1);
if (myComp.markerProperty.numKeys > 0){
alert(myComp.markerProperty.keyTime(1));
}
if (myLayer.property("Marker").numKeys > 0){
alert(myLayer.property("Marker").keyTime(1));
}



Dan



Return to posts index

Rainier Raydán
Re: Get Markers info via scripting
on Apr 29, 2019 at 5:11:26 pm

Was it that easy??
haha thanks!


Return to posts index

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