MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / selectedKeyframe

Method selectedKeyframe

src/visualizer/sequencer/sequencer_controller.cpp:585–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583 }
584
585 std::optional<size_t> SequencerController::selectedKeyframe() const {
586 if (!selected_keyframe_id_.has_value())
587 return std::nullopt;
588
589 const auto index = timeline_.findKeyframeIndex(*selected_keyframe_id_);
590 if (!index.has_value())
591 return std::nullopt;
592
593 const auto* const keyframe = timeline_.getKeyframe(*index);
594 if (!keyframe || keyframe->is_loop_point)
595 return std::nullopt;
596 return index;
597 }
598
599 sequencer::CameraState SequencerController::currentCameraState() const {
600 return timeline_.evaluate(playhead_);

Callers 13

setupPythonBridgeMethod · 0.80
renderCameraPathMethod · 0.80
renderKeyframeGizmoMethod · 0.80
renderKeyframePreviewMethod · 0.80
syncPipPreviewWindowMethod · 0.80
setupEventsMethod · 0.80
updateTimelineGuidesMethod · 0.80
rebuildKeyframesMethod · 0.80
rebuildFilmStripMethod · 0.80
TESTFunction · 0.80

Calls 2

findKeyframeIndexMethod · 0.80
getKeyframeMethod · 0.80

Tested by 2

TESTFunction · 0.64
sync_selected_indexMethod · 0.64