Class NodeModel

class NodeModel

This class represents an InstantTerra node model.

InstantTerra instantTerra = new InstantTerra();
NodeModel model = instantTerra.GetProject().GetGraph().GetNodeModels()[0];  // Get the first node model

NodeModel model = myNode.GetNodeModel();
String Name { get; }

Name of the model

string nodeModelName = model.Name;
String CategoryName { get; }

Category name of the model

string categoryName = model.CategoryName;
Dictionary<Connector.ConnectorMode, List<Connector>> Connectors { get; }

Dictionary of node model connectors

// Get the first input node connector
Connector firstInputConnector = model.Connectors[Connector.ConnectorType.Input][0];