Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Scripting – Color of Layer Marker Label

  • Scripting – Color of Layer Marker Label

  • Emanuel Tilly

    May 7, 2020 at 9:48 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);

  • Dan Ebberts

    May 7, 2020 at 10:15 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

  • Emanuel Tilly

    May 7, 2020 at 10:25 pm

    Thank you! That worked beautifully!

Viewing 1 - 3 of 3 posts

Log in to reply.

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