| 4630 | } |
| 4631 | |
| 4632 | void |
| 4633 | RotoContext::removeItemAsPythonField(const RotoItemPtr& item) |
| 4634 | { |
| 4635 | RotoStrokeItem* isStroke = dynamic_cast<RotoStrokeItem*>( item.get() ); |
| 4636 | |
| 4637 | if (isStroke) { |
| 4638 | ///Strokes are unsupported in Python currently |
| 4639 | return; |
| 4640 | } |
| 4641 | std::string appID = getNode()->getApp()->getAppIDString(); |
| 4642 | std::string nodeName = getNode()->getFullyQualifiedName(); |
| 4643 | std::string nodeFullName = appID + "." + nodeName; |
| 4644 | std::string err; |
| 4645 | std::string script = "del " + nodeFullName + ".roto." + item->getFullyQualifiedName() + "\n"; |
| 4646 | if ( !appPTR->isBackground() ) { |
| 4647 | getNode()->getApp()->printAutoDeclaredVariable(script); |
| 4648 | } |
| 4649 | if ( !NATRON_PYTHON_NAMESPACE::interpretPythonScript(script, &err, 0) ) { |
| 4650 | getNode()->getApp()->appendToScriptEditor(err); |
| 4651 | } |
| 4652 | } |
| 4653 | |
| 4654 | NodePtr |
| 4655 | RotoContext::getOrCreateGlobalMergeNode(int *availableInputIndex) |
no test coverage detected