Node Catalog

john's Avatar

john

02 Apr, 2021 06:14 AM

Attached is a demo with custom node that displays information about all 148 current NodeBox nodes. Its usefulness is dubious, but it does provide an example of how to make a custom node that introspects NodeBox itself.

A big thanks to NodeBox user ahuman who discovered and shared the basic technique. He found a way to retrieve all the node names. I expanded on that to provide much more including the icon, type colors, and details about each port. (The icons are composed of individual pixels; to draw them inside NodeBox I had to borrow code from my Image node.)

This demo produces a kind of microfiche. Information about each node appears on a separate frame. Scroll through the frame field in the lower left corner of the app window to see each node in alphabetical order. Or export it as a movie (as I have already done - attached) to step through them by hitting the right arrow key in any MP4 video player - or just hit play to see them all in 6 seconds flat.

If anyone wanted such a thing, it would be very easy to turn this into a poster as well.

The main node_table node produces a high level data table for the nodes. Additional nodes buried in subnetworks provide the node icons and port info. All require nodelist.py (included in zip file) which must be added as a code library. Open nodelist.py in a text reader to see how it works.

Each node card provides information already available from the New Node dialog, but shows it in a single summary view (instead of making you lookup each port one at a time). It uses the correct colors based on data type both for the node and for each port, though these are rather hard to distinguish (as they are in NodeBox itself). I show value ports as dotted lines to distinguish them from list ports (which suck in data all at once instead of one at a time); this is something I would like to see NodeBox do someday.

Enjoy?

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Node_List_Screenshot.png 546 KB
  • node_list.zip 10.2 KB
  • Node_Catalog.mp4 1.14 MB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

04 Nov, 2024 10:52 AM
02 Nov, 2024 11:22 AM
01 Nov, 2024 12:41 AM
01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM

 

30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM
26 Sep, 2024 06:41 AM
24 Sep, 2024 12:32 AM
24 Sep, 2024 12:27 AM