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.

NodeBox 3From the old forum

count number of instances of a value?.. confused

No replies yet

  1. sorry if this is a stupid question.. still getting use to nodebox3. I have a set of points (i'll call them hubs) - i joined them with lines. Then i thought while out walking, Each line is 2 points so there is a point for every connecting line at eachhub. I wanted to add an elipse at each hub and scale it based on the number of points at that hub. how would i go about counting the number of duplicate instances?
    I got as far as adding a distinct node, so i have the number of unique points.

    to make this a bit clearer, If i had a list : [1,1,2,3,3,3,4,7,9,4,3,2,6] or similar how could i get a list of unique values with a count
    like [1-2, 2-2, 3-4, 4-2,7-1,9-1,6-1]

    hope this isn't a annoying question. Congrats on the excellent piece of software
    Mark

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply