HELP to create a script where it creates a material with group name and apply to group

HELP to create a script where it creates a material with group name and apply to group

marcoshering44ELJ
Observer Observer
536 Views
4 Replies
Message 1 of 5

HELP to create a script where it creates a material with group name and apply to group

marcoshering44ELJ
Observer
Observer

Hi everybody!

I have a file with lots of groups and I needed to create a new corona material with the name of each individual group and apply this material to the group. I tried everything i could and i could not get any results. So for example, if I have 10 groups, there would be 10 materials and each material would be applied to its corresponding group. Can someone help me please?


Thanks in advance

0 Likes
537 Views
4 Replies
Replies (4)
Message 2 of 5

Serejah
Advocate
Advocate
What're you going to do with nested groups?
0 Likes
Message 3 of 5

marcoshering44ELJ
Observer
Observer

I will then export to D5 Render, which divides the groups by material and not block, group or asset. Thats why I need to create a material for each separate group.

0 Likes
Message 4 of 5

Serejah
Advocate
Advocate
Imagine group A contains nested groups B and C.
How many materials do you need? Only one for group A or two for B & C or three for all these groups,
0 Likes
Message 5 of 5

marcoshering44ELJ
Observer
Observer

Imagine i have a scene with 10 grouped items, can be 20 or 40. i just need to create a single material for each group and apply it to the group. So if there is 10 groups.. 10 materials and so on.

0 Likes