Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Layer Markers on Text Layer

  • Layer Markers on Text Layer

    Posted by Nathaniel Logan on January 19, 2019 at 12:28 pm

    Hi,

    I’m trying to insert layer marker on a text layer from the below script and it works perfectly fine.

    But the problem is the marker is placed at the Time interval of 2seconds, which is fine but. if my layer is starting from 5second the Marker has to be placed at 7second but when i run the script the marker is placed at the 2 seconds which is the empty area.

    Can you help me on this, the marker has to be placed at “Inpoint(of the layer)+2second”

    Thanks,
    Much appreciated.

    var myComp=app.project.activeItem;
    var myMarker = new MarkerValue("anything");
    myComp.selectedLayers[0].property("Marker").setValueAtTime(2, myMarker);

    Nathaniel Logan replied 7 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andrei Popa

    January 19, 2019 at 2:31 pm

    This should do it

    var myComp=app.project.activeItem;
    var myMarker = new MarkerValue("anything");
    var myLayer = myComp.selectedLayers[0]
    myLayer.property("Marker").setValueAtTime(myLayer.inPoint+2, myMarker);

    Andrei
    My Envato portfolio.

  • Nathaniel Logan

    January 20, 2019 at 6:13 am

    Thank you so much Andrei.

    Works like charm 🙂

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