MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / timeLineGotoTime

Method timeLineGotoTime

Engine/OfxImageEffectInstance.cpp:1075–1087  ·  view source on GitHub ↗

set the timeline to a specific time

Source from the content-addressed store, hash-verified

1073
1074/// set the timeline to a specific time
1075void
1076OfxImageEffectInstance::timeLineGotoTime(double t)
1077{
1078 OfxEffectInstancePtr effect = getOfxEffectInstance();
1079
1080 effect->updateThreadLocalRenderTime(t);
1081
1082 ///Calling seek will force a re-render of the frame T so we wipe the overlay redraw needed counter
1083 bool redrawNeeded = effect->checkIfOverlayRedrawNeeded();
1084 Q_UNUSED(redrawNeeded);
1085
1086 effect->getApp()->getTimeLine()->seekFrame( (int)t, false, 0, eTimelineChangeReasonOtherSeek );
1087}
1088
1089/// get the first and last times available on the effect's timeline
1090void

Callers

nothing calls this directly

Calls 6

getOfxEffectInstanceFunction · 0.85
seekFrameMethod · 0.80
getTimeLineMethod · 0.45
getAppMethod · 0.45

Tested by

no test coverage detected