NodeBox with JS ( D3.JS or P5.JS ) For FxHash

0xamirreza's Avatar

0xamirreza

16 May, 2022 10:30 AM

Hi dear community, as a new member of nodebox family i have a newbi question i tried to find my answer on the internet but i couldnt find it, so i decide to ask it here,i know its a newbi question but i need help, i know the output of NodeBox based on XML, but is that possible to coverted into D3.JS or P5.JS, As I noticed if u want to work with FxHash u need .html/css .js file, so i think to my self if we import csv to d3 or p5 does we have a chance to put fxrand() function into our code with changing some variables ?
- I hope I was able to reach the point
- Ty Amirreza

  1. Support Staff 1 Posted by john on 18 May, 2022 10:12 PM

    john's Avatar

    Hi Ty,

    Thanks for writing. And my apologies - the forum software filed your note in the spam folder for some reason. I just found it and restored it.

    There has been some interest lately in using Nodebox for FxHash NFT art projects. Sadly, I don't see a way of doing this directly. At this point you basically need to use javascript (or javascript-based languages) or maybe Python or some other mainstream coding language for this sort of thing.

    Nodebox NDBX files are indeed just XML files, so they need an app (Mac , PC, or Linux) to be interpreted and converted to art and animations. The inventors of Nodebox did attempt to make a javascript-based version of Nodebox a few years back, Nodebox Live. It reached a beta version but was never fully debugged and polished. I don't believe any work has been done on it lately and I don't think many people are using it.

    Nodebox is just a list of functions and in theory each one of those functions could be ported to javascript. Some of this porting work would be straightforward, but some of the core nodes are rather sophisticated and would be more difficult to port. Nodebox is open source, so this work could be attempted by anyone, but I am not aware of any efforts in that direction.

    Similarly, it would be possible in theory to write javascript code that would read in an NDBX XML file (or equivalent JSON file) and do this porting on the fly - at least for a subset of nodes. But this would be difficult and borderline crazy.

    So, bottomline, I don't see how you can use Nodebox directly for FxHash projects.

    HOWEVER, you CAN use Nodebox to pilot and polish such projects before writing them in javascript. Nodebox is great for playing with and exploring new graphical effects. And it lets you do this quickly and easily. You can try hundreds of things in Nodebox during a single session that would take far longer in any other language, Once you have the bugs worked out and get things looking just the way you want them, you could then port your code over to Javascript by hand.

    I encourage you to give this a try. And if you do, please post something in the Share your Work thread here on the forum so that others can be aware of your efforts. If you run into any trouble on the way, or have any other questions at all, I am happy to try answering.

    Good luck and welcome to the Nodebox community!

    John

  2. Support Staff 2 Posted by Frederik De Ble... on 19 May, 2022 01:51 PM

    Frederik De Bleser's Avatar

    You could also try using NodeBox Live, which is a somewhat-similar version of NodeBox running on the web:

    https://nodebox.live/

    Use this link to create a new account:

    https://nodebox.live/users/create

    Best,

    Frederik

  3. Support Staff 3 Posted by john on 19 May, 2022 07:46 PM

    john's Avatar

    Frederik,

    Cool! I hadn't checked the Nodebox Live site in years and didn't realize you had done a full release. Looks great!

    Ty - or any other FxHash artists reading this: If you do find a way to incorporate Nodebox Live into your Hash workflow, could you please post something here in the forum? There's a lot of interest in this, and I would love to see a proof of concept showing that it could be done.

    John

  4. 4 Posted by 0xamirreza on 20 May, 2022 04:12 PM

    0xamirreza's Avatar

    Dear friends
    Thank you for taking the time to respond. I try my best

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

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

16 Jun, 2022 05:30 AM
15 Jun, 2022 06:03 AM
06 Jun, 2022 01:07 PM
02 Jun, 2022 11:58 PM
30 May, 2022 07:48 AM

 

24 May, 2022 06:27 PM
20 May, 2022 04:12 PM
05 May, 2022 02:25 AM
03 May, 2022 04:46 AM
01 May, 2022 09:22 AM
18 Apr, 2022 09:01 PM