modified metallica example
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;)
Thanks!
- Metallica_Dataset4.csv 3.51 KB
- testFest01.ndbx 8.78 KB
-
testFest.png 423 KB
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
1 Posted by len on 28 Apr, 2016 03:45 AM
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.
2 Posted by len on 28 Apr, 2016 03:53 AM
AHHHH! The zipmap was ignoring them because there was a Distinct in the chain! Think I'm starting to get this;)
3 Posted by len on 28 Apr, 2016 04:08 AM
Nope, still having issues with periods. Fixed some duplicates but not the periods. There must be a way...
4 Posted by rioch on 28 Apr, 2016 05:23 AM
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
5 Posted by len on 28 Apr, 2016 03:24 PM
^ Thank you, this worked.
replaced . with ? then replaced ? with .
still wondering why the zip_map ignores periods. maybe someone will chime in...
Support Staff 6 Posted by Frederik De Ble... on 29 Apr, 2016 09:16 AM
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...
7 Posted by len on 29 Apr, 2016 03:44 PM
Yes, I noticed the lookup node had the same issue. Good to know and thanks for this AWESOME APP!!!