Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Problem with Dan Ebbert’s Marker Animation Expression

  • Problem with Dan Ebbert’s Marker Animation Expression

    Posted by Patrick Grossien on January 16, 2014 at 7:08 pm

    First Post… and I start it off with a “Help” shout. So thanks in advance, everybody!

    I am trying to get Dan Ebbert’s marker script to work with a fake mouse cursor.
    https://www.motionscript.com/design-guide/marker-sync.html

    I’ve got the following setup:
    1st layer: “action” null with the markers
    2nd layer: keyframes with interpolation off “arrow” transparency 100 / “hover” transparency 0
    2nd layer: keyframes with interpolation off “arrow” transparency 0 / “hover” transparency 100 / “click” a small keyframes scale animation

    I works fine when I call the markers. But if I call the arrow marker and I let it rest over 2 seconds, the transparency switch at 0:02:00 is shown.
    But after that it works fine. The third marker is not accidentally triggered. I’m working with CS5.5 and didn’t make any changes to the script.

    What do I need to do that the animation always stops at 0 when no marker is called?

    Anyone who can help me out? Any help is much appreciated! Thank you everyone!

    Patrick Grossien replied 12 years, 3 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    January 17, 2014 at 1:56 am

    I think the expression is set up to hold the last value if it runs into the next marker. Is it not doing that, or is that not what you want? One thing you could try is spreading the animation (and markers) out enough so that you never run into the next marker.

    Dan

  • Patrick Grossien

    January 17, 2014 at 7:59 am

    Dan, the man himself! Thank you for the quick response!

    I do want that the animation stops after each call.

    Spreading it would surely solve it. 🙂 it’s just weird that it continues after “arrow” but doesn’t continue further after “hover” maybe I could try setting another blank marker or something like that in between. And as it seems it wasn’t doing what it should i immediately thought it needed different solving 🙂

    If not of course I’ll just spread it out.

    Thanks!!!

  • Dan Ebberts

    January 17, 2014 at 5:40 pm

    Any way you could post a project file that demonstrates the problem?

    Dan

  • Patrick Grossien

    January 17, 2014 at 8:34 pm

    Sure. I’ll try to attach it.
    I found one thing that works: if I just insert another marker with any name it doesn’t switch. but if I call the arrow again, it switches. So it needs the stop to work.

    7005_pointertest.zip

  • Dan Ebberts

    January 17, 2014 at 9:23 pm

    Thanks for posting that. A couple of things–one is that your Hover keyframes occur one frame before the Hover marker. But there does indeed seem to be a problem with the expression. Try changing the longest line to this:

    tMax = action.marker.key(actMarker.index + 1).time – actMarker.time – thisComp.frameDuration;

    Dan

  • Patrick Grossien

    January 17, 2014 at 10:28 pm

    Awesome! That did it ! Thank you so much, Dan! I’ll try to understand what happened tomorrow – too late for my brain right now. 🙂

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