View Full Version : Show map in viewport ON/OFF script?
03-12-2009, 04:20 PM
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?
03-12-2009, 04: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-12-2009, 04:46 PM
for example, this is old (2000) bobo's script (#24):
SMIV (Show Maps In Viewports) Version 2.3 (http://www.scriptspot.com/bobo/mxs3/smiv/SMIV_23.ms)
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-12-2009, 04: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-12-2009, 05: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.
Have you tried this one :
03-12-2009, 05:31 PM
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.
03-12-2009, 05: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.
vBulletin v3.0.5, Copyright ©2000-2015, Jelsoft Enterprises Ltd.