automatic sub-material naming

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

AttachmentSize
111.png46.73 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
harumscarum's picture

thank you. unfortunatelly it

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's picture

ouh - i must rewrite some of

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.

Kstudio's picture
harumscarum's picture

just tried

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)

 

 

Anubis's picture

oh, you expect ready for use script?

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

my recent MAXScripts RSS (archive here)

Anubis's picture

if i get it right...

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

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.