Class Node¶
-
class Node
¶ This class represents an InstantTerra node.
InstantTerra instantTerra = new InstantTerra(); Node myNode = instantTerra.GetProject().GetGraph().GetAllNodes()[0]; // Get the first node
-
Boolean
HasParameter
(String parameterName)¶ - Returns
True if the parameter exists, otherwise False.
bool goodParameter = myNode.HasParameter("offset_x"); // true bool badParameter = myNode.HasParameter("unknown"); // false
-
String[]
GetParameterList
()¶ - Returns
List of parameters name.
Returns the list of node parameters name.
string[] parameters = myNode.GetParameterList();
-
String
GetParameterValue
(String parameterName)¶ - Returns
Value of the parameter.
Returns the value of the parameter.
string parameterValue = myNode.GetParameterValue("max_height");
-
Boolean
SetParameterValue
(String parameterName, String value)¶ Sets the value of the parameter.
myNode.SetParameterValue("max_height", "100.0"); Console.WriteLine(myNode.GetParameterValue("max_height"));
-
Dictionary<Connector.ConnectorMode, List<Connector>>
GetConnectors
()¶ Returns a dictionnary of connectors of the Node and if they are connected.
Dictionary<Connector.ConnectorMode, List<Connector>> connectors = myNode.GetConnectors();