Odd behaviour on first item of list

Darren Crabb's Avatar

Darren Crabb

03 Jan, 2024 01:01 PM

I'm getting some odd behaviour that I've spent hours looking over and can't seem to resolve. I'm not sur eif it's a bug or whether it's just something I've done that is causing the problem. In a nutshell I'm getting duplicate items on the first item of my list. I'm pulling in a csv which has a set of projects. Each project belongs to a division and is assigned to a number of categories (one ot many relationship). So in nodebox I've built a list from all the categories available across all the projects by splitting the strings by commas and building a distinct list of categories, which I'm then assigned an SVG icon to and giving a colour for each. That is then creating a legend and that part all works as expected. I'm then working through all the projects and doing a similar thing for each project - taking the comma separated list of categories and feeding that into a subnetwork that is filtering and bringing back the relevant icons in the correct colours etc to place alongside the project title. That mostly works apart from the very first item in the list always seems to have the complete list of categories regardless of what I've assigned to it and seems to be overlapping it's categories over the top of those. All the others behave as expected. I suspect I'm experiencing some sort of duplication somewhere, but I can't seem to find it and I'm likely to lose all my hair at this rate! Any help would be appreciated. All relevant files attached within a zip file.

  1. Support Staff 1 Posted by john on 11 Jan, 2024 08:42 AM

    john's Avatar

    Hi Darren,

    First of all, my apologies. The stupid forum software put your message into the spam folder and I only just now found it. Wish I'd seen this a week ago.

    But on the off chance you haven't already figured this one out...

    It's a simple mistake, a kind of duplication as you guessed. I tidied up your nodes a bit and fixed the bug (zip file attached), and am also attaching before and after screenshots.

    The problem is the combine1 node near the bottom of your network. It has three inputs:

    • rotate1 - the main circle with all the labels and icons
    • translate2 - all the icons in one place
    • translate3 - the legend

    The first and last are fine, and are all you need. The second input, translate2, is a duplicate of the icons already included in the nodes feeding into your rotate1 node.

    So all you have to do is remove that second input (translate2) from into the combine1 node (as in the after screenshot). Now Project 1 has only one icon as it should have. Problem solved.

    It's often these tiny things that cause what seem to be more complex problems. But when you've been wresting with things you can become too close to see it. Happens to me all the time.

    Again, sorry for the delay in getting back to you. Please let me know if you are still there, and saw this response, and if it solved your issue.

    John

  2. 2 Posted by Darren Crabb on 16 Feb, 2024 10:33 AM

    Darren Crabb's Avatar

    Ah ha ... I wondered why my post didn't appear! That explains it! I suddenly remembered that I'd posted it here and came back to double check if it had now appeared and now there's an answer, so once again thanks very much for your help John, I knew there had to be something stupid I'd done somewhere but just couldn't see it! Much appreciate your time and skill in helping me find that! I must have restructured that bit at one point and forgotten to remove the original connection. Now I'm looking back at it I wonder how I didn't see that in the first place ... like you say, you get too close to things things sometimes and get caught up thinking the problem is elsewhere.

  3. Support Staff 3 Posted by john on 16 Feb, 2024 05:24 PM

    john's Avatar

    Glad I could help!

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • projects2003.zip 22.1 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

23 Apr, 2024 07:54 PM
19 Apr, 2024 04:41 AM
16 Apr, 2024 06:18 PM
16 Apr, 2024 04:23 AM
08 Apr, 2024 01:28 AM

 

07 Apr, 2024 11:50 PM
05 Apr, 2024 11:47 PM
05 Apr, 2024 12:30 AM
25 Mar, 2024 08:48 PM
14 Mar, 2024 07:40 PM
14 Mar, 2024 07:38 PM