View Full Version : Show map in viewport ON/OFF script?

03 March 2009, 03:20 PM
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 :)


03 March 2009, 03:39 PM

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)

viewportmaps (selection as array) true -- or false!



03 March 2009, 03:46 PM
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.

03 March 2009, 03:54 PM
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

03 March 2009, 04:01 PM
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.


03 March 2009, 04:21 PM
Have you tried this one :

03 March 2009, 04:31 PM
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. :cool:

vlad: this script give me some error.

CGTalk Moderation
03 March 2009, 04:31 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.