Splitting lists by value

Hello,

I have a list of different numbers and i want to chop them in sublists.
The list should be choped if the word “grenze” apperas in a row.
I have no more idea how to do this.
Can you help me?

Something like that?

Hi,
dirty version
grenze.dyn (5.8 KB)

Source: http://stackoverflow.com/questions/1198512/split-a-list-into-parts-based-on-a-set-of-indexes-in-python

It doesn’t need scripting (although it does make life easier). Here’s an out-of-the-box node solution:

Totally misread the message ahahaha
WHEN the word appears you want to start a new sublist?

yes and the word is only a sign for me that i know here must start a new list.
grenze should not be a part of the list. only the numbers.

thank you guys

thank you that works for me. guys you helped me so much

is it possible to make in this sublists points.by.coordinates?
because the format is x;y;z; for coordinates

This question is out of topic. Start a new topic. Thanks :slight_smile:

Thomas,

I’m baffled, where does the Y value connect on your subtraction node.

Its List.AddItemToEnd that’s connected to the y value of the subtraction node

I see thanks!

Hello everyone! I have seen that topic and it is similar with my goal.
I want to split up each value of [0] List (see photo)
Once, I have each independent value I want, in a iterative way, for example, at first value [0] Point (X=0.01 Y=-150 Z=-150) with value that appears in [1] List which value is Point (X=0 Y=0 Z=0). Secondly, [1] Point (X=0.5 Y=-150 Z=-150) with [1] List which value is Point (X=0 Y=0 Z=0)

My goal is to get a polycurve that moves

Thanks a lot!!!


i have been trying to solve a similar problem.
i found that List.GroupByKey works for me