#Litegraph-like Handles

1 messages · Page 1 of 1 (latest)

solar moat
#

I'm trying to build a genericNode with handles that are like litegraph i.e. text next to handles and selections below all handles.

I know how to create text next to a handle, but im having trouble with spacing the handles and I've spent a bunch of time doing some hacks like adding padding-top in order to make it look as clean. This is because when i add a text div on the handle, it doesn't know anything about the node itself so I need to conditionally add pt to the top of the node based on how many handles are attached to a node and it's messy.

Has anyone done anything like this or has an example of how to
do this? I feel like I have to do a ton of hacks to get this to work 😭

minor escarp
#

Did something like this

#

Sorry for the crappy screenshot

#

I'll send you the code for the nodes and handles