Is there any script to show the diffuse map (or with mix materials the first diffuse map) of all materials in the scene?
Announcement
Collapse
No announcement yet.
Script For "Show Shaded Material In Viewport"
Collapse
X
-
Done. Only one line:Code:for i in sceneMaterials do try(showTextureMap i (if(try(if i.diffuse_tex!=undefined do true)catch(false))then i.diffuse_tex else if(try(if i.diffuse_tex.texture1!=undefined do true)catch(false))then i.diffuse_tex.texture1)ON)catch()
Last edited by Sylk; 11-28-2016, 02:30 PM.Software: FStormRender: 1.5.0h | Drivers NV: 456.71 | 3dsMax: 2020.3 | Windows: 10 x64
Hardware: Gpu: GTX1080 Phoenix GLH | Cpu: i7-2600k@4.5GHz | Ram: 16GB | SSD: Samsung 860 Pro
-
Originally posted by Sylk View PostDone. Only one line:Code:for i in sceneMaterials do(try(showTextureMap i (if(try(if i.diffuse_tex!=undefined do true)catch(false))then i.diffuse_tex else if(try(if i.diffuse_tex.texture1!=undefined do true)catch(false))then i.diffuse_tex.texture1)ON)catch())
Not working for me...Last edited by RobSteady; 11-28-2016, 03:09 PM.FStorm 1.3.0d I Max 2018 I Win7 I i7 5930k I 64GB I 3 x 1080Ti
Comment
-
Yes.
Or you can paste it into the maxscript field at the bottom-left of the max window, and press enter.
It works on 2017 and it should on 2014.Last edited by Sylk; 11-28-2016, 04:28 PM.Software: FStormRender: 1.5.0h | Drivers NV: 456.71 | 3dsMax: 2020.3 | Windows: 10 x64
Hardware: Gpu: GTX1080 Phoenix GLH | Cpu: i7-2600k@4.5GHz | Ram: 16GB | SSD: Samsung 860 Pro
Comment
-
Hello !
For starters check whether all materials are FStorm.
for i in sceneMaterials do (
s = ClassOf i
print (s)
)
Just run this script in MS (Evalute all). And look what materials in the scene .. If there FStormPortal that these materials do not have ,aps such as Diffuse, FStormPortal to exclude. checks can be realized through (if ClassOf != 'FStormPortal')
Comment
-
Originally posted by Refik View PostHello !
For starters check whether all materials are FStorm.
FStormPortal or other is not a problem.Software: FStormRender: 1.5.0h | Drivers NV: 456.71 | 3dsMax: 2020.3 | Windows: 10 x64
Hardware: Gpu: GTX1080 Phoenix GLH | Cpu: i7-2600k@4.5GHz | Ram: 16GB | SSD: Samsung 860 Pro
Comment
-
Yeah, i just did quick line for demand.
Better code to affect all is this:Code:for i in sceneMaterials do try(showTextureMap i(case classOf(d=i.diffuse_tex)of(FStormColorCorrection:(d.input);FStormDirt:(d.radius_texture);FStormGradient:(d.source_map);FStormMix:(d.texture1);FStormOutput:(d.input);default:d)ON)catch()
Last edited by Sylk; 11-28-2016, 07:52 PM.Software: FStormRender: 1.5.0h | Drivers NV: 456.71 | 3dsMax: 2020.3 | Windows: 10 x64
Hardware: Gpu: GTX1080 Phoenix GLH | Cpu: i7-2600k@4.5GHz | Ram: 16GB | SSD: Samsung 860 Pro
- 1 like
Comment
-
Originally posted by Sylk View PostYeah, i just did quick line for demand.
Better code to affect all is this:Code:for i in sceneMaterials do try(showTextureMap i(case classOf(d=i.diffuse_tex)of(FStormColorCorrection:(d.input);FStormDirt:(d.radius_texture);FStormGradient:(d.source_map);FStormMix:(d.texture1);FStormOutput:(d.input);default:d)ON)catch()
Comment
-
Originally posted by Sylk View PostYeah, i just did quick line for demand.
Better code to affect all is this:Code:for i in sceneMaterials do try(showTextureMap i(case classOf(d=i.diffuse_tex)of(FStormColorCorrection:(d.input);FStormDirt:(d.radius_texture);FStormGradient:(d.source_map);FStormMix:(d.texture1);FStormOutput:(d.input);default:d)ON)catch()
Could be the Multi/Sub-Object Materials?Last edited by RobSteady; 11-29-2016, 09:50 AM.FStorm 1.3.0d I Max 2018 I Win7 I i7 5930k I 64GB I 3 x 1080Ti
Comment
-
Here is the macro button version. Clic the button let you choose Show or Hide maps.
Extract zip into 3dsmax folder.
Find macro in category "SGX FStormTools".Attached FilesLast edited by Sylk; 11-29-2016, 10:12 AM.Software: FStormRender: 1.5.0h | Drivers NV: 456.71 | 3dsMax: 2020.3 | Windows: 10 x64
Hardware: Gpu: GTX1080 Phoenix GLH | Cpu: i7-2600k@4.5GHz | Ram: 16GB | SSD: Samsung 860 Pro
Comment
-
Originally posted by RobSteady View PostSorry, still not working for me
Could be the Multi/Sub-Object Materials?
Can you post screenshot from your slate material editor, please?
Try with the macro version.Last edited by Sylk; 11-30-2016, 03:58 AM.Software: FStormRender: 1.5.0h | Drivers NV: 456.71 | 3dsMax: 2020.3 | Windows: 10 x64
Hardware: Gpu: GTX1080 Phoenix GLH | Cpu: i7-2600k@4.5GHz | Ram: 16GB | SSD: Samsung 860 Pro
Comment
Comment