Hi Octane forum friends. First of all, I apologize if this question has been asked before.
My question is: Is there any way to show all materials in viewport (textures and/or colors) after octane material conversion?
I use to apply V-ray materials to my geometry, and when i want to make a render with Octane, after material conversion everything becomes white. I have to go to all materials one by one and activate "Show shaded material in viewport", and i was wondering if there's an easier way to do it.
I have tried with material editor's menu (Material --> Show Materials in viewport as --> Shaded materials with maps) but it doesn't work, everything stays white. Btw, i'm using 3DsMax 2014
Thanks in advance for your help!
Show materials in viewport
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
run the attached maxscript in max
also you can disable texture showing by changing the "on" to "off"

Code: Select all
-- show texture map in viewport for all octane diffuse and glossy materials
-- supports viewport display of RGB Image, Alpha Image and Greyscale Image
fn get_texture_map tex_map=
(
if classof tex_map == RGB_Image or classof tex_map == Alpha_Image or classof tex_map == Greyscale_Image then
(
return tex_map
)
else if classof tex_map == Multiply_Texture or classof tex_map == Mix_Texture then
(
if tex_map.texture1_tex != undefined then return get_texture_map tex_map.texture1_tex
else if tex_map.texture2_tex != undefined then return get_texture_map tex_map.texture2_tex
)
return undefined
)
for ii in SceneMaterials do
(
if classof ii == Diffuse_Material or classof ii == Glossy_Material then
(
if ii.diffuse_tex != undefined then
(
jj = get_texture_map ii.diffuse_tex
if jj != undefined then showtexturemap ii jj on
)
)
)
- Attachments
-
- showOctaneDiffuseMap.zip
- (519 Bytes) Downloaded 251 times
- BKEicholtz
- Posts: 80
- Joined: Tue Dec 07, 2010 11:14 pm
This is very helpful, thank you. I did not know this was possible.
ASRock Extreme11 | i7 3970x 5.0 Ghz | 32gb RAM | (4) EVGA SC Titans
Thanks a lot.
Hope otoy give us more access to Scripting !
Hope otoy give us more access to Scripting !
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
nice one..
3dmax, zbrush, UE
//Behance profile //BOONAR
//Octane render toolbox 3dsmax
//Behance profile //BOONAR
//Octane render toolbox 3dsmax