ScriptSpot

Script

showInViewportTextures

By u.v · 2009-09-23

Version
1.0
Version requirement
any (i suppose)
Date updated
2009-10-01
Votes
23
Description

showInViewportTextures

it is a gui botton to on or off material/textures previews in viewport.

to assign a shortcut: "customize user interface" -> "mainUI" -> "compariello"

* just you must have materialID equal to number of multimaterial list.

Attachments

Tags: viewport

Comments (15)

addition to description

Custom · 2020-04-24

Works with std materials.
Doesn't work with vray.
Max 2014.

error

stenionet · 2012-08-03

I am getting error in this line: "if (classOf oggetto.material.materialList[b].diffuseMap != undefinedclass) then"

asymptote · 2011-10-31

Hmm Graph, you should get bored more often....very cool :) thx

Graph · 2010-11-03

hey there i was bored so i added and changed 1 or 2 things 

lol didnt even notice, dass du das ding garnich gemacht hast :P
anyways have fun with my version hehe

Attachments

.:.

dddesign · 2010-11-07

hey graph,

thx and danke for the cool code inserting the bitmap

ich bleib zwar lieber bei den buttons sind schneller geclickt aber den bitmap code werd ich ab jetz für alle meine scripts verwenden, auch wenn ich ihn nicht wirklich versteh;)

thx&greetz

edited version working with Arch&design

dddesign · 2010-11-07

hey,

today i edited the script again to work with arch&design material, also arch&design inside Multi/sub....

if i find the time i want to mnake it work with double sided too....

Attachments

Mike Truly · 2010-08-09

Thanks for this useful tool!

One problem. It works fine on a regular multi-sub material where the sub-materials are simply standard materials (I can sucessfully show or hide the Diffuse map for example.

But if the multi-sub material contains 'Double Sided' materials... then the buttons of the script do nothing. It appears as though it is not going down into the Double Sided materials and setting the state of the the maps below.

Is it possible to fix this?

Thanks again.

stenionet · 2010-07-09

Great script.
Is there a way to make it work with Mental ray (arch & design)?

Mr.T · 2009-12-16

Thanks for the script, I wanted to make something like this (on/off toggle in viewport for the diffuse), really handy.

u.v · 2009-10-13

i add wireframe button to switch wireframe on/off with actived shading viewport also.

dddesign · 2009-10-05

thx for the script but sorry I dont understand the opacity thing:

if (classOf oggetto.material.diffuseMap == bitmapTexture) then
(
oggetto.material.opacityMap = Bitmaptexture fileName: (oggetto.material.diffusemap.filename)
oggetto.material.opacityMap.monoOutput = 1
)

its always changing the opacity map(procedural) to the diffuse map.
a bug???

I erased this and the rightclick feature, now works fine for my needs .......

could upload it if someone needs it too.....

dddesign · 2009-10-05

now you find it under
"customize user interface" -> "mainUI" -> "dddesign"

_______________________________________________________
http://www.dddesign.at

Attachments

u.v · 2009-10-07

i place a copy diffuse map in opacity channel to show in viewport alpha channel ... if you place txt in color diffuse just, i can't see alpha in viewport ... so i resolve it with left/right click ;)

however ... tnks about yours support

paulov · 2009-10-02

THanks, especially usefull with multimaterials. Wich are a pain to set the texture on one by one. Thanks

u.v · 2009-10-01

update ...

i add "Empty MaterialEditor" button