ScriptSpot

Forum topic · Scripts Wanted

automatic sub-material naming

By harumscarum · 2013-02-19

Description

is there any way to script this action - to name sub-material according to material name and vice versa

Attachments
Comments (6)

harumscarum · 2013-02-20

thank you. unfortunatelly it is not fully supports SlateMaterialEditor (sub-material must be in Standard materail editor slot) and there is error during converting - i guess this is because spaces in material names?

 

Kstudio · 2013-02-20

ouh - i must rewrite some of my old scripts.
I made the update for this script.
Download
Soon i will add the support for SlateMaterial Editor.

just tried

harumscarum · 2013-02-19

put this script to scripts/startup folder, but nothing happens when i try to rename material in sub-material. need syncronized names  (changed automaticly with every renaming)

 

 

oh, you expect ready for use script?

Anubis · 2013-02-21

I give you the "bread and butter" for that task, and if you make a little efforts... instead of wait... :)

if i get it right...

Anubis · 2013-02-19

fn nameMMSlots mat = (
	if IsKindOf mat multiSubMaterial do
	for i = 1 to mat.materialList.count do
	mat.names[i] = mat.materialList[i].name
)