ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Scripting - Color of Layer Marker Label

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Emanuel Tilly
Scripting - Color of Layer Marker Label
on May 7, 2020 at 9:48:27 pm

Hi!
I'm working on a script to import markers from a txt-file into AE and so far it's working great. I just can't figure out how to get the "label" attribute (0-16) into AE to change the color of the marker. According to the scripting guide it should be possible.
Can someone shed some light on this for me?

var myMarker = new MarkerValue(marker_label);
myLayer.property("Marker").setValueAtTime(marker[0], myMarker);


Return to posts index

Dan Ebberts
Re: Scripting - Color of Layer Marker Label
on May 7, 2020 at 10:15:28 pm

I just tried this and it seems to work:

var myLayer = app.project.activeItem.layer(1);
var myMarker = new MarkerValue("my comment");
myMarker.label = 1; // red
myLayer.property("Marker").setValueAtTime(1, myMarker);


Dan



Return to posts index

Emanuel Tilly
Re: Scripting - Color of Layer Marker Label
on May 7, 2020 at 10:25:59 pm

Thank you! That worked beautifully!


Return to posts index

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