Joost >( -- $ is the current selection, and could contain several objects -- so we put the selection in an array, and parse it. Now it works on several objects ! sel = selection as array for s in sel do --for each object in the selection ( if s.material == meditMaterials[1] then s.material = meditMaterials[2] else…
( --opacity in % opacityAmount = 20 sel = selection as array try ( for obj in sel do --for each object in the selection ( mat = obj.mat matName = mat.name if (matchpattern matName pattern:"XRAYMAT_*" ignoreCase:false == true) then ( matName = substituteString matName "XRAYMAT_" "" for m in scenematerials do ( if m.name ==…