How to divide 1 list into 3

I want to take this List and give each value in it a different index.

You will probably find what you need here :slight_smile:



http://dynamoprimer.com/en/06_Designing-with-Lists/6-2_working-with-lists.html

1 Like

You’ll have to do a little bit of cleanup but I think you’re looking for String.Split.
image

Based on your values, it looks like those are RGB colors. If you have the actual Dynamo color objects you can use nodes to pull the RGB values. It you’re pulling those objects from somewhere else (like Excel) and they’re already strings, then you’ll need the above node I mentioned.

2 Likes

Use a Python Node to convert them to tuples.

OUT = [eval(i) for i in IN[0]]
2 Likes

thanks you