link.
Link
This class represents a link between two nodes.
>>> from wysilab import InstantTerra
>>> it = InstantTerra()
>>> my_node = it.project.graph.get_all_nodes()[0] # Get the first node
>>> link = it.project.graph.get_node_links(my_node)[0] # Get the first link of the node "my_node"
link.
LinkType
This enum represents the type of a node connector.
Link.
start_node
Node (Nodes)
Node at the start of the link.
>>> print(my_link.start_node)
Perlin noise
Link.
start_connector_type
Connector type at the start of the link.
>>> print(my_link.start_connector_type)
<ConnectorType.Terrain: 0>
Link.
start_connector_mode
Connector mode at the start of the link.
>>> print(my_link.start_connector_mode)
<ConnectorMode.Output: 2>
Link.
end_node
Node (Nodes)
Node at the end of the link.
>>> print(my_link.end_node)
Apply curve
Link.
end_connector_type
Connector type at the end of the link.
>>> print(my_link.end_connector_type)
<ConnectorType.Terrain: 0>
Link.
end_connector_mode
Connector mode at the end of the link.
>>> print(my_link.start_connector_mode)
<ConnectorMode.MandatoryInput: 0>
Copyright © 2022 · All Rights Reserved · Wysilab