Creating signals via scripts

This is my first post so I apologize if I do something incorrectly.

Is it possible to create and add a signal emitter to a track (specifically an AnimationTrack) through a script? I checked the TimelineAsset and AnimationTrack docs, but I couldn’t find anything relevant to it and I couldn’t find any examples of signals in scripts either.

The animation track itself is made through a script so I can’t use the timeline window to add it.

Yes, you can use TrackAsset.CreateMarker(time) to add a signal emitter to any track that supports markers, even an AnimationTrack.