| 4591 | } |
| 4592 | |
| 4593 | void |
| 4594 | RotoContext::removeItemAsPythonField(const boost::shared_ptr<RotoItem>& item) |
| 4595 | { |
| 4596 | RotoStrokeItem* isStroke = dynamic_cast<RotoStrokeItem*>( item.get() ); |
| 4597 | |
| 4598 | if (isStroke) { |
| 4599 | ///Strokes are unsupported in Python currently |
| 4600 | return; |
| 4601 | } |
| 4602 | std::string appID = getNode()->getApp()->getAppIDString(); |
| 4603 | std::string nodeName = getNode()->getFullyQualifiedName(); |
| 4604 | std::string nodeFullName = appID + "." + nodeName; |
| 4605 | std::string err; |
| 4606 | std::string script = "del " + nodeFullName + ".roto." + item->getFullyQualifiedName() + "\n"; |
| 4607 | if ( !appPTR->isBackground() ) { |
| 4608 | getNode()->getApp()->printAutoDeclaredVariable(script); |
| 4609 | } |
| 4610 | if ( !NATRON_PYTHON_NAMESPACE::interpretPythonScript(script, &err, 0) ) { |
| 4611 | getNode()->getApp()->appendToScriptEditor(err); |
| 4612 | } |
| 4613 | } |
| 4614 | |
| 4615 | NodePtr |
| 4616 | RotoContext::getOrCreateGlobalMergeNode(int *availableInputIndex) |
no test coverage detected