Skip to content

NodeTypes: NodeCompile

Akash Bora edited this page Jan 28, 2024 · 9 revisions

Compile Node

This node can be considered as the output node. It can be used to pass the final command from the previous operations.

This node calls the command whenever the previous output is changed.

node_types

Usage

node = NodeCompile(canvas, text="Output", show_value=True)

Arguments

Parameter Description
canvas parent canvas where the node will be spawn
height height of the node
width width of the node
show_value updates the text on the node if enabled (boolean)
fg_color foreground color of the node
text change the text of the node
text_color change the text color
font change the font of text
justify change the text anchor
highlightcolor hover color of the node
border_width adds an additional border to the nodes
border_color border color of the node if border_width>0
hover disable/enable the hover effect
socket_color change the color of the sockets
socket_hover_color change the hover color of the sockets
socket_hover enable/disable the socket hover
socket_radius change the size of the sockets
corner_radius change the roundness of the node frame
multiple_connection connect multiple nodes to one input, returns a list
pass_node_id pass node id in the command (bool)
side change the side of the socket (left or right)
x specify the x spawn location
y specify the y spawn location
fixed removes the delete key binding, makes the node non-removable
command add the final command when the node is connected
click_command add a command when the node is clicked

Methods

  • .configure(args...): change some attributes of the node.
  • .destroy(): deletes the node from the canvas.
  • .exists(): check if node exist in the canvas.
  • .get(): get the current output value.
Clone this wiki locally