replace Cinemachine Shot in timeline during runtime

Posting here too in case the other forum wasn’t right:

Hi.
I’m trying to make a timeline sequence which can change in some situations (the change is decided before the sequence starts playing)

Specifically replace a virtual camera in one of the shots clip.

But I am not able to figure out how to replace my CinemachineShot clip in the Cinemachine track.

I tried to simply apply a different virtual camera by code, it worked but the clip got broken and the virtual camera properties in that shot were not applied. when the timeline plays it ignores the clip altogether as if in that point there is no virtual camera active at all.

Any help about this would be appreciated.

Edit:
this is the code for I tested with:

public static void ReplaceClipCinemachineCamera(this PlayableDirector playableDirector,
            string trackName,
            string clipName,
            GameObject otherVirtualCamera)
        {
            TimelineAsset timeline = playableDirector.playableAsset as TimelineAsset;

            if (timeline == null)
            {
                return;
            }

            foreach (var trackAsset in timeline.GetOutputTracks())
            {
                if (trackAsset.name == trackName)
                {
                    var clipToEdit = trackAsset.GetClips()
                        .FirstOrDefault(clip => clip.displayName == clipName);
                    if (clipToEdit == null)
                    {
                        continue;
                    }

                    var controlPlayableAsset = (clipToEdit.asset as CinemachineShot);

                    if (controlPlayableAsset == null)
                    {
                        return;
                    }

                    playableDirector.SetReferenceValue(controlPlayableAsset.VirtualCamera.exposedName, otherVirtualCamera);
                }
            }
        }

If you can’t get the replacement code to work, there is perhaps another alternative.
Could you use a CinemachineMixingCamera as a target vcam for the clip? Give it different vcam children, and instead of trying to remap the clip, leave the mapping alone and instead set the weight in the mixing camera of the child you want to activate. All other child weights to 0.

Thank you for the quick answer.
I will try to make the required changes to support the mixer camera.