Getting Markers without a Name

I want to get the name of any marker in the animation

The Problem is, that I can’t use GetMarkerReachedSignal() without any params. I thought it would fire every time a Marker is reached, but no. it needs a param.

So I somehow want to get the name of the marker, without knowing it.
What I tried:

  • GetMarkerReachedSignal() without any params
  • animationTrack:GetMarkers() and then looping through them to get the name
  • looping through every keyframe with animationTrack:KeyframeReached() but its Deprecated

As a Suggestion for the Luau engine:

Edit the GetMarkerReachedSignal(), so you don’t necessarily have to put a name param in there. If you don’t put a name there, it should give you the marker and the params.

This should have told you all the named keyframes that are defined. Why didn’t this work for you? Are you looking for a specific one?

It doesn’t. As you can see there is no Method called like that:

The only thing I could do is getting the markers through every single keyframe

Oh sorry, I misunderstood your OP and thought you were saying you made that function call. But yeah, it doesn’t exist.

You could make this into a feature request if you want it to get more visibility.

It would probably help if you add some context about why you want to do this though, since there might be a better way to do what you’re trying to do.

Also, you can open the animation in the animation editor plugin and view all the named keyframes that way. This of course only works at edit time and not at run time, but I’m not sure what use case there is for needing to get them at runtime.

How do I get permissions for posting in there?

you don’t sadly

i tried to get access but they haven’t even responded to my request :man_shrugging:

it’s a group, same as the Programmer tag I have. Forgot how you get there, but I doubt you’d even get accepted in sadly

1 Like