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.
I am new to Nodebox and folllowed the introductory docs. I've created a custom node that returns a python list of tuples with color values. However, I
– can't find a way to either access the tuple keys to feed the R|G|B|A channels of an RGB-Color node.
– can't use this list directly as an input for shape colors (somewhere on Github I've read that this might work, tried it with and without the alpha value included)
Is there a way to do this? If not, what other ways could you suggest?
LU
LUlucasnijs
There is probably a better way but here's a quick fix: chop of the brackets of all your tuples (e.g. with the substring node). The resulting string can be turned into numbers with the make numbers node. Here you can select the items to send to the r,g,b, and alpha ports. Look at the attached files. I used a subnetwork where you can send your list of tuples to, I just created some strings because I do not have your file.
Know something that helps?
Sign in with your email address to reply. No password needed.