Class Link¶
-
class
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"
-
class
link.
LinkType
¶ This enum represents the type of a node connector.
Terrain
Mask
Value
ColorRamp
ColorMap
VectorMap
Other
-
Link.
start_node
¶ - Type
Node (Nodes)
Node at the start of the link.
>>> print(my_link.start_node) Perlin noise
-
Link.
start_connector_type
¶ - Type
Connector type at the start of the link.
>>> print(my_link.start_connector_type) <ConnectorType.Terrain: 0>
-
Link.
start_connector_mode
¶ - Type
Connector mode at the start of the link.
>>> print(my_link.start_connector_mode) <ConnectorMode.Output: 2>
-
Link.
end_node
¶ - Type
Node (Nodes)
Node at the end of the link.
>>> print(my_link.end_node) Apply curve
-
Link.
end_connector_type
¶ - Type
Connector type at the end of the link.
>>> print(my_link.end_connector_type) <ConnectorType.Terrain: 0>
-
Link.
end_connector_mode
¶ - Type
Connector mode at the end of the link.
>>> print(my_link.start_connector_mode) <ConnectorMode.MandatoryInput: 0>