DomC Posted May 14, 2021 Share Posted May 14, 2021 (edited) Hi I am close before using a custom node and I thought, this time I ask before I create a new custom node 🙂 I have two corresponding data flows in two wires. I want to add items of the second wire by counting the items in first wire.  'obj1', 'obj1', 'obj2', 'obj3', 'obj3', 'obj3', 'obj3' second wire is: 'str1', 'str2', 'str3', 'str4', 'str5', 'str6', 'str7' Somebody knows how to concatenate the strings of the second wire corresponding to the count of the items in wire 1? 'str1str2', 'str3', 'str4str5str6str7' In a second scenario, I have already grouped the second wire in lists of the lenght of counts of the items in wire1 'obj1', 'obj2', 'obj3' ['str1', 'str2'], ['str3'], ['str4', 'str5', 'str6', 'str7']  I repead: It is no problem to solve that with python, but with standard nodes I need an idea.  Add List of Strings.vwx Edited May 14, 2021 by DomC Quote Link to comment
Antonio Landsberger Posted June 15, 2021 Share Posted June 15, 2021 I solved the first part. Who can solve the second? Â Quote Link to comment
Antonio Landsberger Posted June 15, 2021 Share Posted June 15, 2021 @Marissa Farrell How easy do you think would it be to modify the Chunk List Node in such a way, that it could take a list instead of a single number? If the chunk list has less items than necessary to chunk the other list, repeate the chunk list from the first item. 1 Quote Link to comment
Marionette Maven Marissa Farrell Posted June 23, 2021 Marionette Maven Share Posted June 23, 2021 On 6/15/2021 at 10:45 AM, Antonio Landsberger said: @Marissa Farrell How easy do you think would it be to modify the Chunk List Node in such a way, that it could take a list instead of a single number? If the chunk list has less items than necessary to chunk the other list, repeate the chunk list from the first item. Â I don't think it would be too hard. I'll take a stab at it once I have some free time. Quote Link to comment
Letti R Posted October 12, 2022 Share Posted October 12, 2022 Hello,  i think i finaly solved this problem without using custom nodes. It was a fun challenge but, i would rather just write a custoum node 😉. So here is my solution to the problem. Unfortunately the file is created with an edu version of Vectorworks.  Thanks to @Antonio Landsberger for bringing this problem back to my mind.   Regards, Letti Marionett_ DomC Problem_solved.vwx 1 Quote Link to comment
Antonio Landsberger Posted October 18, 2022 Share Posted October 18, 2022 Thank you for this @Letti R! I'm attaching a non EDU version and a screenshot for others to see. It certainly shows that an improved Chunk List is necessary.  Marionett_ DomC Problem_solved-non-EDU.vwx  1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.