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

15 Apr, 2021 06:22 AM
14 Apr, 2021 11:34 PM
13 Apr, 2021 09:20 AM
04 Apr, 2021 10:50 PM
04 Apr, 2021 10:20 PM

 

02 Apr, 2021 06:14 AM
30 Mar, 2021 09:34 AM
30 Mar, 2021 08:52 AM
28 Mar, 2021 02:58 PM
26 Mar, 2021 03:13 AM
26 Mar, 2021 12:46 AM