ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
this function will help you to toggle "showMaps" on or off in viewport
fn showInViewportOnOff =
(
local mtlTypeArr = #(Multimaterial, Standardmaterial, Arch___Design__mi, VRayMtl)--fR_Advanced and fR_Architectural not have this property
local state = ifselection.count != 0 then selectionelseobjectsfor o in state where o.material != null do(
mat = o.material, idx = (finditem mtlTypeArr (classOf mat))
case of ((idx > 1): (mat.showInViewport = not mat.showInViewport)(idx == 1): (for m in mat.materialList where ((finditem mtlTypeArr (classOf m))> 1)do(m.showInViewport = not m.showInViewport)))))
Comments
Thank you barigazy. i will
Thank you barigazy.
i will look into it when i have some spare time. ;)
/ Raymond
this function will help you
this function will help you to toggle "showMaps" on or off in viewport
also see this thread
http://forums.cgsociety.org/showthread.php?f=98&t=298391&highlight=showi...
bga