modified metallica example

len's Avatar

len

27 Apr, 2016 02:18 AM

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!

  1. 1 Posted by len on 28 Apr, 2016 03:45 AM

    len's Avatar

    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. 2 Posted by len on 28 Apr, 2016 03:53 AM

    len's Avatar

    AHHHH! The zipmap was ignoring them because there was a Distinct in the chain! Think I'm starting to get this;)

  3. 3 Posted by len on 28 Apr, 2016 04:08 AM

    len's Avatar

    Nope, still having issues with periods. Fixed some duplicates but not the periods. There must be a way...

  4. 4 Posted by rioch on 28 Apr, 2016 05:23 AM

    rioch's Avatar

    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. 5 Posted by len on 28 Apr, 2016 03:24 PM

    len's Avatar

    ^ Thank you, this worked.

    replaced . with ? then replaced ? with .

    still wondering why the zip_map ignores periods. maybe someone will chime in...

  6. Support Staff 6 Posted by Frederik De Ble... on 29 Apr, 2016 09:16 AM

    Frederik De Bleser's Avatar

    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. 7 Posted by len on 29 Apr, 2016 03:44 PM

    len's Avatar

    Yes, I noticed the lookup node had the same issue. Good to know and thanks for this AWESOME APP!!!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Metallica_Dataset4.csv 3.51 KB
  • testFest01.ndbx 8.78 KB
  • testFest.png 423 KB

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

06 Sep, 2023 07:20 AM
05 Sep, 2023 08:40 PM
30 Aug, 2023 03:16 AM
19 Aug, 2023 03:22 AM
29 Jul, 2023 05:52 AM

 

28 Jul, 2023 10:53 PM
23 Jul, 2023 07:04 AM
14 Jul, 2023 03:05 AM
07 Jul, 2023 06:26 AM
05 Jul, 2023 11:44 PM
30 Jun, 2023 12:48 PM