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];

Copyright © 2020 · All Rights Reserved · Wysilab