This script doesn’t find the materials with the interpolation parameter, but will set the materials of the current selection to either true or false (currently set to false)
If you really need something to find the materials, that isn’t too hard either.
note: this will work with two levels of multi-subobjects, but wont work with other compund material types like blend, composite, doublesided, etc. If you need something a little bit more, please let me know.
Just select the objects you wan to cheack and drop the .ms file in your viewport. Look in the listener (F11) for errors.
J.
-- change the properties of materials in the current object selection.
fn changeparam u=
(
-----------------------------------------------------
-- this is where the material parameters are changed!
-- change this to true or false, or add other material properties.
u.reflection_useInterpolation=false
-----------------------------------------------------
)
for p in selection do
(
pushprompt "Working..."
if p.material!=undefined then
(
s=p.material
format "% " s.name
if classof s==Multimaterial then
(
for t in s do if classof t==Multimaterial then
(
for u in t do changeparam u
) else
(
changeparam t
)
) else
(
changeparam s
)
)
)
pushprompt "Finished!"