MCPcopy Create free account
hub / github.com/MrKepzie/Natron / removeItemAsPythonField

Method removeItemAsPythonField

Engine/TrackerContext.cpp:1040–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038}
1039
1040void
1041TrackerContext::removeItemAsPythonField(const TrackMarkerPtr& item)
1042{
1043 std::string appID = getNode()->getApp()->getAppIDString();
1044 std::string nodeName = getNode()->getFullyQualifiedName();
1045 std::string nodeFullName = appID + "." + nodeName;
1046 std::string err;
1047 std::string script = "del " + nodeFullName + ".tracker." + item->getScriptName_mt_safe() + "\n";
1048
1049 if ( !appPTR->isBackground() ) {
1050 getNode()->getApp()->printAutoDeclaredVariable(script);
1051 }
1052 if ( !NATRON_PYTHON_NAMESPACE::interpretPythonScript(script, &err, 0) ) {
1053 getNode()->getApp()->appendToScriptEditor(err);
1054 }
1055}
1056
1057void
1058TrackerContext::declareItemAsPythonField(const TrackMarkerPtr& item)

Callers

nothing calls this directly

Calls 8

getAppIDStringMethod · 0.80
getNodeFunction · 0.70
getAppMethod · 0.45
getFullyQualifiedNameMethod · 0.45
getScriptName_mt_safeMethod · 0.45
isBackgroundMethod · 0.45
appendToScriptEditorMethod · 0.45

Tested by

no test coverage detected