Python Script with a list

dynamo
#1

Hello,

I am trying to extract some specific parameters from materials. I can extract a parameter from one material but I would like to do the same with a list of materials.

Thanks for your help

#2

Hi,

The easiest way would be to learn some Python by yourself. Those two websites should do the trick :slight_smile:

https://www.learnpython.org/en/Lists

https://www.learnpython.org/en/Loops

#3

Hello!
Try to learn about “for” method. An example:

In the second python, the last line is “OUT = finalList”, like this:
Forum

2 Likes
#4

Thx I am starting to use python so I think that’s a good idea!

1 Like
#5

That’s the idea :slight_smile:

You’ll just need now to apply those methods to what you wanted initially (you’ll see, it won’t be difficult now that you can code a for loop :wink: )

#6

heck this detailed tutorial on…Python Loops