Message 1 of 19

Not applicable
10-25-2018
01:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
I'm a 3D artist (I don't know scripting unfortunetly) and I search a script to condense ID of multi/subobject material which share the same name material.
I found this script via scriptspot:
pattern = "*woo*" mtl = -- your multi-material goes here mtls = mtl.materialList mat = undefined for i=1 to mtls.count where mtls[i] != undefined do ( if matchPattern mtls[i].name pattern:pattern do ( if mat == undefined then mat = mtls[i] else ( if mat != mtls[i] do mtls[i] = mat ) ) )
but I have a error message:
--Unknow property: "materialList" in undefined
Someone can help me to make this script work please?
Solved! Go to Solution.