static dict getConnectionByName( NetworkNode& iNode, const std::string& iInputName ) { std::string connectedNodeName, connectedOutputName; iNode.getConnection( iInputName, connectedNodeName, connectedOutputName ); dict ret; ret["connectedNodeName"] = connectedNodeName; ret["connectedOuputName"] = connectedOutputName; return ret; }
static dict getConnectionByIndex( NetworkNode& iNode, size_t iIndex ) { std::string inputName, connectedNodeName, connectedOutputName; iNode.getConnection( iIndex, inputName, connectedNodeName, connectedOutputName ); dict ret; ret["inputName"] = inputName; ret["connectedNodeName"] = connectedNodeName; ret["connectedOuputName"] = connectedOutputName; return ret; }