[Closed] Show map in viewport ON/OFF script?
Hi all,
I search in the scriptspot. I found 3 script for this operation, but no one works.
Do you know in someone have a script for this stupid, but useful operation?
Thanks
cecofuli
Hi,
What exactly do you want it to do?
this little function will toggle on/off the materials for selected objects
fn viewportmaps sel val=
(
for s in sel do
(
try (showTextureMap s.material val)
catch()
)
)
viewportmaps (selection as array) true -- or false!
Regards,
Josh.
Hi j-man,
for example, this is old (2000) bobo’s script (#24):
SMIV (Show Maps In Viewports) Version 2.3
Turn viewport display for any material channel on and off.
Works with selections or the whole scene. Supports most MAX3 Shader types and the Raytrace material.
NEW: Support for most composite Materials with Sub-Materials – Blend, Double-Sided, some 3rd party Materials etc.
Added support for Composite Texture Maps with more than one sub-map: Composite, Mask, Map.
But, obviously, not work with all new shader, for example with VRay 1.5 SP3.
it would need support in the material/map itself to work with that command, I believe
one other thing you could do is open the material/map in medit, then toggle the show material/map button itself
Are you just looking for a quick way to do this? Or do you really need a script to handle it? It is built directly into the Material Editor > Material > Show Material in Viewport As.
-Eric
Have you tried this one :
http://www.sinok.gr/scripts/03toggleDiffuse/toggleDiffuse.html
Hi PiXeL_MoNKeY,
mmm… this is a new tool for me! And this is what I want! But, for example, if you have a material with only a bitmap in the bump channel:
Material Editor > Material > Show Material in Viewport As
not work . Anyway, this is one solution to my problem.
vlad: this script give me some error.