How to give each clump a new material and a new color?
Hi,
I have different clumps like:
###script
sp=pack.
c1=pack.
c2=pack.
c3=pack.
c4=pack.
c5=pack.
#c6=pack.
sp=pack.
print 'Generated # of clumps:
sp.toSimulation
#######
Here, instead of giving one material and one color to all clump particles, How can I give different color and different material to each clump? foe eg: I want to give something like
for clump c1: material =x, color=(255,1,1)
for clump c2: material =Y, color=(255, 0,0) and so on.
I need to do this for at least two different clump type.
I am new to python code so, I want to know what is the script for it.
Any reference and script is much appreciated.
Kind regards,
Kalyan Khanal
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Kalyan Khanal
- Solved:
- Last query:
- Last reply: