Is it possible to add an Animator in an existing Animation Track in the Timeline?

Can I add an animator here through code?
this is what I have now and its not working

foreach (TrackAsset track in timelineAsset.GetOutputTracks())
{
UnityEngine.Object bindingObject = director.GetGenericBinding(track);
if (bindingObject is Animator animator)
{
Debug.Log(“Binding Object is animator”);
animator = charAnimator;
}
}

9577513--1355785--upload_2024-1-12_22-30-36.png

You can set the object bound to a track with SetGenericBinding:
csharp* *foreach (TrackAsset track in timelineAsset.GetOutputTracks()) { if (track is AnimationTrack) { //object bindings need to be set though the director component director.SetGenericBinding(track, charAnimator); } }* *