ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
You need to know first that layer index is 0-based.
This code works fine if Layer "0" is at the top of the list.
cnt = if LayerManager.count <= 24 then LayerManager.count else 24
for i in 0 to (cnt-1)do(
iLayer = layerManager.getLayer i
if iLayer.name != "0"do(iLayer.setName (meditMaterials[i].name)))
It's difficult to understad you.
Are you need material name = layer name
But you have 40 layers and 24 Material Editor slots.
Maybe is better to create material library file to store 40 mtls
Comments
Your script is
Your script is finished.
http://www.scriptspot.com/3ds-max/scripts/layer-material-creator
bga
Layer Name = Material Name
You need to know first that layer index is 0-based.
This code works fine if Layer "0" is at the top of the list.
bga
sorry my poor explanation
layers = 40
each layer is assigned standard material
standard material name is changed with layer name
exmaple]
original layer name = car1 , car2 car3 car4
each layer object material is not assign
my wanted]
each layers is assign material ( material name = car1, car2 car3............)
can you understand ?
It's difficult to understad
It's difficult to understad you.
Are you need material name = layer name
But you have 40 layers and 24 Material Editor slots.
Maybe is better to create material library file to store 40 mtls
bga
thank you barigazy
yes i need material name= layer name
1. select objects in each layer
2. make material ( material name = layer name)
3. assign material to layer
can you understand ~~~~~~~~~~
which material you want to
which material you want to use
--standard
--arch&design
--Vray mtl
bga
yes i use standard material
i use standard maerial
but for future , vray material is needed
sorry my many ask ~~
Tomorrow you will get what
Tomorrow you will get what you need and a few new things.
Code is finished but I decided to write a script.
bga
ok i see
thank you for your effor
i will wait~~
Wait for what?
Wait for what?
bga