PDA

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


cecofuli
03-12-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 :)

cecofuli

j-man
03-12-2009, 03:39 PM
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.

cecofuli
03-12-2009, 03:46 PM
Hi j-man,

for example, this is old (2000) bobo's script (#24):

LINK (http://www.scriptspot.com/bobo/mxs3)

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.

ZeBoxx2
03-12-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

PiXeL_MoNKeY
03-12-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.

-Eric

vlad
03-12-2009, 04:21 PM
Have you tried this one :

http://www.sinok.gr/scripts/03toggleDiffuse/toggleDiffuse.html

cecofuli
03-12-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.

http://scriptspot.com/files/Immagine.jpg

CGTalk Moderation
03-12-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.