Hello ![]()
Does anyone know a way to select a section in the outliner of the level sequence editor with C++? I need to switch between sections and use the shortcuts β,β and β.β to jump between the keyframes in that section. Currently this only works when manually clicking on the section in the outliner.
In C++ I tried using the ISequencer function SelectSection() as well as finding the track the section belongs to and use SetSectionToKey() on it. Both individually and combined did nothing to get the shortcuts to work with the section. Iβm lost trying to figure out how to trigger the same behaviour as manually clicking in the outliner of the level sequence editor.
This is my code:
ISequencer* Sequencer = GetSequencer();
if (Sequencer)
{
if (SelectedSection)
{
Sequencer->EmptySelection();
Sequencer->SelectSection(SelectedSection);
UMovieSceneTrack* Track = SelectedSection->GetTypedOuter<UMovieSceneTrack>();
Track->SetSectionToKey(SelectedSection);
}
// just in case the keyboard focus was lost
TSharedPtr<ITimeSlider> TimeSlider = Sequencer->GetTopTimeSliderWidget();
if (TimeSlider)
{
FSlateApplication::Get().SetKeyboardFocus(TimeSlider);
}
}
There also is a visual difference (here I first selected section βFingers_Rβ manually and then βFingers_Lβ with C++):
Any ideas on how to trigger the manual behaviour with C++?

