Class Connector

class connector.Connector

This class represents an InstantTerra node connector.

>>> from wysilab import InstantTerra
>>> it = InstantTerra()
>>> my_node = it.project.graph.get_all_nodes()[0]  # Get the first node

>>> # Get the first Input connector
>>> connector = my_node.get_connectors()[ConnectorMode.Input][0]
class connector.ConnectorType

This enum represents the type of a node connector.

  • Terrain

  • Mask

  • ColorRamp

  • ColorMap

  • Value

  • VectorMap

  • Generic

  • ValueOrMask

class connector.ConnectorMode

This enum represents the mode of a node connector.

  • Input

  • Optional

  • Output

Connector.name
Type

str

Raises

ValueError – Impossible to override this attribute.

Name of the connector.

>>> print(connector.name)
input_terrain
Connector.type
Type

ConnectorMode

Raises

ValueError – Impossible to override this attribute.

Type of the node.

Connector.mode
Type

ConnectorMode

Raises

ValueError – Impossible to override this attribute.

Mode of the node.