Help & Feedback
Work in progress
Indespensible MaxScripts, Plugins and 3rd Party Tools
The allmighty FREE Resources Thread !
Maxforums member photo gallery index
Maxforums Member Tutorials
three cheers to maxforums...
101 Things you didnt know in Max...
A Face tutorial from MDB101 :D
Maxforums.org Members Gallery
SON OF POST YOURSELF
Dub's Maxscript Tutorial Index
Maxunderground news unavailable
Copy material via maxscript
Can anyone help me in how to do this in maxscript?
I have a multisub material.
I want to get a copy of a specific sub material of it and rename that copy with a suffix "_separated"
thanks for your time!
read 179 times
11/8/2017 12:28:32 PM (last edit: 11/8/2017 12:28:32 PM)
There you go
mymultimat = $.material
numsubs = mymultimat.materiallist.count
format "\n \n % has % submaterials \n" mymultimat numsubs
for i=1 to numsubs do (format "current material is % \n" mymultimat[i]
local prefix = mymultimat.materiallist[i].name
local suffix = "_separated"
combined = prefix+suffix
newMat = copy mymultimat.materiallist[i]
newMat.name = combined
setMeditMaterial i newmat
read 113 times
11/10/2017 11:12:12 AM (last edit: 11/10/2017 3:17:02 PM)
Thanks a lot 3joez!
read 85 times
11/12/2017 5:24:48 AM (last edit: 11/12/2017 5:24:48 AM)
Open chat window