Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am new to maxScript. I am looking for a script that will rename only my selected material.
Samethink like this:
macroScript RenameThem category: "HowTo"
(
rollout rename_rollout "Enter New Base Name"
(
edittext base_name ""
button rename_them "RENAME SELECTED OBJECTS..."
on rename_them pressed do
(
if base_name.text != "" do
for i in selection do i.name = uniquename base_name.text
)--end on
)--end rollout
createDialog rename_rollout 250 50
)
But this only works on an object.
This works for all my material:
for mat in scenematerials do
(
print ("material name: " + mat.name)
mat.name = "_512_opaque"
)
So i need only the selection from the scenematerials array.
Hope sameone can help
Greetings Peter
Solved! Go to Solution.