Lookup and Filter Data with native nodes

Guilherme Vieira's Avatar

Guilherme Vieira

18 Apr, 2022 10:37 AM


Sometimes I see some projects using the lookup and filter data nodes on the output of some other native Nodebox nodes such as using the lookup on the output of a point node to get the x of the point. Is there any way for me to know which items can be filtered or parsed in the output of a node?


  1. Support Staff 1 Posted by john on 18 Apr, 2022 07:31 PM

    john's Avatar


    Yes, there is!

    Use the Keys node. Hook the output of any native Nodebox node to the Keys node. It will produce a list of all they keys that you can look up. Some keys will be internal Nodebox things (e.g. class) that you can't use, but the rest will be fine.

    A special key is "bounds". If you look up the bounds of a rect you will get a 4-tuple, something like "Rect(-50.0, -50.0, 100, 100). The first two values are the x and y of the shape's top left corner; the other two values are its width and height. You can retrieve any of these four values in a single bound by using dot notation:

    bounds.x = top left x
    bounds.y - top left y
    bounds.width = width
    bounds.height = height

    The Keys node is one of my secret weapons. I use it all the time to find these hidden gems.



  2. 2 Posted by Guilherme Vieir... on 18 Apr, 2022 09:01 PM

    Guilherme Vieira's Avatar

    Thanks John!

Reply to this discussion

Internal reply

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

Attaching KB article:


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


? 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

29 May, 2024 05:47 AM
29 May, 2024 05:15 AM
29 May, 2024 05:12 AM
28 May, 2024 07:37 PM
25 May, 2024 11:52 AM


24 May, 2024 07:39 AM
16 May, 2024 02:11 AM
14 May, 2024 01:29 AM
12 May, 2024 07:46 PM
05 May, 2024 04:38 PM
03 May, 2024 06:50 AM