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

Method trackNext

Gui/MultiInstancePanel.cpp:2173–2201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2171}
2172
2173bool
2174TrackerPanelV1::trackNext(ViewerInstance* /*viewer*/)
2175{
2176 Dialogs::errorDialog( tr("Tracker").toStdString(), tr("TrackerPM is now depecrated and can only be used to retrieve animation tracked from older projects, please use the Tracker node from now on.").toStdString() );
2177
2178 return false;
2179#if 0
2180 std::list<Node*> selectedInstances;
2181
2182 getSelectedInstances(&selectedInstances);
2183 if ( selectedInstances.empty() ) {
2184 Dialogs::warningDialog( tr("Tracker").toStdString(), tr("You must select something to track first").toStdString() );
2185
2186 return false;
2187 }
2188 std::vector<KnobButton*> instanceButtons;
2189 if ( !_imp->getTrackInstancesForButton(&instanceButtons, kNatronParamTrackingNext) ) {
2190 return false;
2191 }
2192
2193 TimeLinePtr timeline = getApp()->getTimeLine();
2194 int start = timeline->currentFrame();
2195 int end = start + 1;
2196
2197 _imp->scheduler.track( TrackArgsV1(start, end, 1, getApp()->getTimeLine(), viewer, instanceButtons) );
2198
2199 return true;
2200#endif
2201}
2202
2203void
2204TrackerPanelV1::clearAllAnimationForSelection()

Callers

nothing calls this directly

Calls 7

getAppFunction · 0.85
toStdStringMethod · 0.80
emptyMethod · 0.80
trackMethod · 0.80
getTimeLineMethod · 0.45
currentFrameMethod · 0.45

Tested by

no test coverage detected