Ecotect Analysis Forum (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Scripting: Get Amount of Layers for spec Material

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
354 Views, 0 Replies

Scripting: Get Amount of Layers for spec Material

Hey there

for a script i need to know the amount of layers for a selected material, since i i didnt find the right attribute to retrieve the amount direct, i created a loop to iterate over one layerattribute until the value gets nil | 0.

 

So , i think, with a counter running, i have a good criteria to break the loop and get a proper value

It should get nil when are no more layers to iterate over.

 

 

Here s now the point;  the variable contains a couple of more "random" values  until it gets finally zero

Any idea what went wrong?

 

 

Thanks for help

Tim

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report