Class NodeModel

class node_model.NodeModel

This class represents an InstantTerra node model.

>>> from wysilab import InstantTerra
>>> it = InstantTerra()

>>> # Get the first node models
>>> model = it.project.graph.get_node_models()[0]

NodeModel.name

Type

str

Raises

ValueError − Impossible to override this attribute.

Name of the model.

>>> print(model.name)
Perlin noise

NodeModel.category_name

Type

str

Raises

ValueError − Impossible to override this attribute.

Name of the model category.

>>> print(model.category_name)
Terrain generators

NodeModel.connectors

List of the node model connectors

Type

dict<ConnectorMode, list<Connector>>

Raises

ValueError − Impossible to override this attribute.

>>> print(model.connectors)
{<ConnectorMode.MandatoryInput: 0>: [Connector<...>], <ConnectorMode.OptionalInput: 1>: [], <ConnectorMode.Output: 2>: [Connector<...>, Connector<...>]}

Copyright © 2022 · All Rights Reserved · Wysilab