Replacement for MovieSceneColorTrack->Eval() in 4.15?

In 4.14 I used below code, but lot of Sequencer code changed in 4.15 and I’m puzzled.
How to simply read value of track in the recent release?

((UMovieSceneColorTrack*)Track)->Eval(Frame / 30, 0, Color);

Hey,

You can extract the value of the curves of a section using something like this:

bool EvaluateColor(UMovieSceneColorTrack* InColorTrack, float Position, FLinearColor DefaultColor)
{
	const UMovieSceneColorSection* Section = Cast<UMovieSceneColorSection>(MovieSceneHelpers::FindSectionAtTime(InColorTrack->GetAllSections(), Position ));

	if (Section)
	{
		return FLinearColor(
			Section->GetRedCurve().Eval(Position, DefaultColor.R),
			Section->GetGreenCurve().Eval(Position, DefaultColor.G),
			Section->GetBlueCurve().Eval(Position, DefaultColor.B),
			Section->GetAlphaCurve().Eval(Position, DefaultColor.A)
			);
	}

	return false;
}

Sequencer no longer interacts directly with the movie scene track.