The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 3From the old forum

snap node

5 replies Last reply

  1. hæ—

    is it possible to modify the snap node or access the grid it uses, to change it ?

    Copy link
  2. NodeBox team

    Hmm, the snap's node functionality is written in Java. Currently it is impossible to change the implementation easily.

    You can examine the code by looking at the Java source here, and the math implementation here.

    Copy link
  3. NodeBox team

    Couldn't resist, and re-implemented the snap functionality in Python. That allows you to look at the implementation and change it.

    There's no built-in text editor, but you can use an external editor, then press Command-R in NodeBox to reload the implementation.

    Copy link
  4. NodeBox team

    Obligatory screenshot:

    Copy link
  5. hæ—

    I think I missed part of this but how do you get custom implementations/nodes into the system ?

    Copy link
  6. NodeBox team

    The example .ndbx file already has this link. 

    The trick is to write a Python file, then in your NodeBox file, link to the code using File > Code Libraries…

    Check out the example I sent you. It should work.

    Grtz,

    F

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply