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

Method removeItemAsPythonField

Engine/TrackerContext.cpp:1059–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057}
1058
1059void
1060TrackerContext::removeItemAsPythonField(const TrackMarkerPtr& item)
1061{
1062 std::string appID = getNode()->getApp()->getAppIDString();
1063 std::string nodeName = getNode()->getFullyQualifiedName();
1064 std::string nodeFullName = appID + "." + nodeName;
1065 std::string err;
1066 std::string script = "del " + nodeFullName + ".tracker." + item->getScriptName_mt_safe() + "\n";
1067
1068 if ( !appPTR->isBackground() ) {
1069 getNode()->getApp()->printAutoDeclaredVariable(script);
1070 }
1071 if ( !NATRON_PYTHON_NAMESPACE::interpretPythonScript(script, &err, 0) ) {
1072 getNode()->getApp()->appendToScriptEditor(err);
1073 }
1074}
1075
1076void
1077TrackerContext::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