List.Chop problem

Hello.
I’m trying to cut a list with a list of lengths. But there is a “0” in this list of lengths that is causing problems, as can be seen in the image below. Does anyone know a way to get the expected result? (Desired List)?

I assume this is an example scenario. Can you show and explain what you’re actually trying to do in your graph? There might be a better solution.

2 Likes

Hi @tiagocorradi

Is this what you need?

image

1 Like

You forgot the script. :stuck_out_tongue:

List.Chop+ in Clockwork can produce empty sublists

2 Likes

@PauLtus Usually i don’t forget anything :wink: i was just making sure if OP is looking the same. As soon as OP replies i will share the python. @Andreas_Dieckmann node is also another possible solution here.

1 Like

Thank you all for the replies. List.Chop+ worked perfectly

Thank you. Even Though @Andreas_Dieckmann node works, could you share your python script? I would like to see how you did it.

5 Likes