i have 20 layers
i would like to assign standard color material
material name is layer name
is that possible
my poor skill can;t do that~~~~~
Forum topic · Scripts Wanted
layers object material with layer names
By dussla · 2012-05-11
Description
Comments (12)
barigazy · 2012-05-12
Your script is finished.
http://www.scriptspot.com/3ds-max/scripts/layer-material-creator
Layer Name = Material Name
barigazy · 2012-05-11
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))
)
sorry my poor explanation
dussla · 2012-05-11
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 ?
barigazy · 2012-05-11
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
thank you barigazy
dussla · 2012-05-11
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 ~~~~~~~~~~
barigazy · 2012-05-11
which material you want to use
--standard
--arch&design
--Vray mtl
yes i use standard material
dussla · 2012-05-11
i use standard maerial
but for future , vray material is needed
sorry my many ask ~~
barigazy · 2012-05-11
Tomorrow you will get what you need and a few new things.
Code is finished but I decided to write a script.
ok i see
dussla · 2012-05-13
thank you for your effor
i will wait~~
barigazy · 2012-05-13
Wait for what?
sorry
dussla · 2012-05-13
i misunderstand your letter
pls , can you help me really~~~
barigazy · 2012-05-13
Be a little more specific.
Which letters do not understand?
If you think of the [L], [C], [M], [T] then read again "How to use"
part of "Aditional info" section. Also check out "description" image.
It's realy easy to use.