-
Notifications
You must be signed in to change notification settings - Fork 10
Other Details
Akash Bora edited this page Jan 28, 2024
·
7 revisions
Here are some miscellaneous details about tknodesystem:
- Double clicking on the wire can remove the connection.
- Hovering over the node and pressing the
<Delete>
key removes the node and connected wires. - Mouse scroll is used to zoom in/out.
- After connecting one socket, other sockets can be connected by just clicking over them. (No need to drag from the output socket again)
- Middle mouse button is used to drag all the components of the canvas.
- Using borderwidth>1 adds a border around the nodes.
- Using corner_radius=0 makes square shaped nodes.
- Using hover=False remove the hover effect from nodes.
- Multisided sockets can be used using
multiside=True
in the NodeOperation arguments. - Multiple colors for sockets (in NodeOperation) can be defined using
socket_color=[color_1, color_2, color_3, ...]
- Using
grid_image=None
removes the grid and makes a plain background with bg color. - All the color values can be changed using
.configure
method. - if your socket inputs take different datatypes, then add some hover info text using
.config_socket(socket_num, hover_text)
. - Clicking the
<spacebar>
in the canvas spawns the node menu. - You can save the canvas file with any name but
.json
is preferred as the extension. - The export file only contains the node arguments, node positions, socket numbers and the line numbers (on the basis of socket numbers).
- For now,
lambda functions
cannot be saved or loaded properly, so avoid using it in the commands of node (if you are planing to save them). - The flow is always from
output_socket-->input_socket(s)
, recursive connections are avoided.