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.
Hi,
I'm trying to modify the Metallica example to fit my own idea however I can't get it to do what I want. Any help would be greatly appreciated.
Basically what I'm trying to do is map an artist name to a particular day. In the Metallica example I believe the words were mapped to the albums and the number of times determined how wide the lines were.
Awesome program, wish it was a little easier for Designers;)
I'm actually getting somewhere now. I figured out how to map the names to the correct days:)
One problem I found was that the names had periods in them and this was causing a problem. How do I pull a list of names that include periods (Mr. Man) for example? The zipmap string input is ignoring these. Maybe because it thinks it not a string?
Help please.
LE
LElen
AHHHH! The zipmap was ignoring them because there was a Distinct in the chain! Think I'm starting to get this;)
LE
LElen
Nope, still having issues with periods. Fixed some duplicates but not the periods. There must be a way...
RI
RIrioch
if you need a quick fix use a replace node after your first lookup to change the dot into something else and use this to feed zip_map and lookup... for labeling you can just connect the original values or revert the replacement
now, if this is a bug or a limitation I don't know, or if there is a better solution
LE
LElen
^ Thank you, this worked.
replaced . with ? then replaced ? with .
still wondering why the zip_map ignores periods. maybe someone will chime in...
FB
FBFrederik De BleserNodeBox team
We use the period to split up keys. This is the same principle we use for the lookup node. It allows you to make "deep" lookups. For example, you can look up the width of a shape by attaching a lookup node to a rectangle for example, and typing bounds.width. This will first look up the bounds (which is a rectangle object) and then call the width.
As with all "smart" features, sometimes they are quite dumb when you don't need them...
LE
LElen
Yes, I noticed the lookup node had the same issue. Good to know and thanks for this AWESOME APP!!!
Know something that helps?
Sign in with your email address to reply. No password needed.