tag:support.nodebox.net,2012-11-01:/discussions/nodebox-2-3/6772-nodebox-with-js-d3js-or-p5js-for-fxhashNodeBox: Discussion 2023-06-30T12:48:40Ztag:support.nodebox.net,2012-11-01:Comment/543001022022-05-18T22:12:23Z2022-05-18T22:13:50ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Hi Ty,</p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>So, bottomline, I don't see how you can use Nodebox directly for FxHash projects.</p>
<p>HOWEVER, you CAN use Nodebox to pilot and polish such projects before writing them in javascript. Nodebox is <em>great</em> 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.</p>
<p>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 <em>happy</em> to try answering.</p>
<p>Good luck and welcome to the Nodebox community!</p>
<p>John</p></div>johntag:support.nodebox.net,2012-11-01:Comment/543001022022-05-19T13:51:04Z2022-05-19T13:51:04ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>You could also try using NodeBox Live, which is a somewhat-similar version of NodeBox running on the web:</p>
<p><a href="https://nodebox.live/">https://nodebox.live/</a></p>
<p>Use this link to create a new account:</p>
<p><a href="https://nodebox.live/users/create">https://nodebox.live/users/create</a></p>
<p>Best,</p>
<p>Frederik</p></div>Frederik De Blesertag:support.nodebox.net,2012-11-01:Comment/543001022022-05-19T19:46:24Z2022-05-19T19:46:24ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Frederik,</p>
<p>Cool! I hadn't checked the Nodebox Live site in years and didn't realize you had done a full release. Looks great!</p>
<p>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.</p>
<p>John</p></div>johntag:support.nodebox.net,2012-11-01:Comment/543001022022-05-20T16:12:49Z2022-05-20T16:12:49ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Dear friends<br>
Thank you for taking the time to respond. I try my best</p></div>0xamirrezatag:support.nodebox.net,2012-11-01:Comment/543001022023-04-15T11:43:51Z2023-04-15T11:43:51ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Hi all,</p>
<p>I got interested in this again after some attempts last year, so I looked up how far I got back then. I made a simple network in <a href="https://nodebox.live/florisdejonge/test">Nodebox Live</a> I followed the example <a href="https://nodebox.live/help/embedding">here</a> and combined it with some of <a href="https://openprocessing.org/sketch/16/">this</a> and uploaded a zipfile to <a href="https://www.fxhash.xyz/sandbox">fxhash</a>. This did not yield any visual results. I got stuck on how the input hash could be used as a seed-value. That's where I left it, my knowledge (and interest) of javascript doesn't go so far, but someone might be able to help develop this further.</p>
<p>Floris</p></div>florisdejongetag:support.nodebox.net,2012-11-01:Comment/543001022023-04-17T11:34:26Z2023-04-17T11:34:26ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Hey Floris,</p>
<p>I see that this happened because the ndbx script is missing a specific header (Cross-Origin-Resource-Policy header — <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Cross-Origin_Resource_Policy">https://developer.mozilla.org/en-US/docs/Web/HTTP/Cross-Origin_Reso...</a>). I'll see if I can add it on the server; but it will take a while because the server infra hasn't been updated in a while.</p>
<p>Best,</p>
<p>Frederik</p></div>Frederik De Blesertag:support.nodebox.net,2012-11-01:Comment/543001022023-06-22T21:53:27Z2023-06-22T21:53:28ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>I open tutorials and everything works, but I can't create my project, this error comes up all the time :(</p>
<p><a href="https://i.im.ge/2023/06/23/iHTY48.error.jpg">error</a></p></div>Eugene Chekhovtag:support.nodebox.net,2012-11-01:Comment/543001022023-06-24T07:48:33Z2023-06-24T07:48:33ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Eugene,</p>
<p>Sorry for all your other notes on this subject that wound up in the spam folder. Just saw this.</p>
<p>I assume this and the similar note you placed in the General Discussions thread both refer to Nodebox Live, not Nodebox 3 - is that correct?</p>
<p>I have asked Frederik to look into this. I have no knowledge of that error message.</p>
<p>Good luck!</p>
<p>John</p></div>johntag:support.nodebox.net,2012-11-01:Comment/543001022023-06-24T08:45:29Z2023-06-24T08:45:34ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Hello, John!</p>
<p>Yes, the error is with Nodbox Live. I apologize for repeated messages, they did not appear when sent and I could not understand what was the reason. Please delete duplicate posts, I don't know how to do that.</p>
<p>Might need to get access, Nodbox Live site still has a beta application form?</p></div>Eugene Chekhovtag:support.nodebox.net,2012-11-01:Comment/543001022023-06-30T12:24:51Z2023-06-30T12:24:51ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>@Eugene the error should be fixed now. You should be able to create new projects.</p></div>Frederik De Blesertag:support.nodebox.net,2012-11-01:Comment/543001022023-06-30T12:48:38Z2023-06-30T12:48:39ZNodeBox with JS ( D3.JS or P5.JS ) For FxHash<div><p>Thank you very much, Frederik! Now it's works.</p></div>Eugene Chekhov