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
str
ValueError − Impossible to override this attribute.
Name of the model.
>>> print(model.name)
Perlin noise
NodeModel.
category_name
str
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
dict<ConnectorMode, list<Connector>>
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