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…
I don't think you can change the opacity value of See Through mode. You can change the color in Customize > Customize User Interface > Colors > Elements: Geometry > See Through. Also, instead of using See Through mode, you can select the object, right click > Object Properties... and change the Visibility value.
( --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 ==…
There are a couple of benefits. 3ds Max will render the visibility using Scanline and Mental Ray renderers. And you can set the opacity value unlike See Through mode. And you don't need a material assigned. I guess it doesn't work with DX Shaders, but neither would a material. Here's a visibility toggle script I had…