Chaos Corona Forum

General Category => General CG Discussion => Topic started by: Bormax on 2016-07-05, 21:46:11

Title: Material Editor sample object preview
Post by: Bormax on 2016-07-05, 21:46:11
Hi guys!

Almost all the time while I work on archvis projects I'm not satisfied with default material preview objects (sphere, cube, cylinder). They do not give enough visual information about the material. This is why I prefer to use my own sample object with rectangular light source (which is more important for work with vray) for material preview in MatEditor (you can see it on attachement) - it gives better visualisation of material I'm working on, about reflections on spherical and flat surfaces at the same time, and even about AO maps if they used in this shader. But in 3DS Max 2014 which I use now switching to custom sample object is possible only from Compact Material Editor mode - not good for me because I get used to work in Slate ME.
Does somebody knows the way how to make Max to use my own sample object as default object for preview (would be perfect)?
Or maybe how to change sample object to my own from Slate Material Editor?

Thanks in advanced!
Title: Re: Material Editor sample object preview
Post by: Jahman on 2016-07-06, 18:49:13
check it out
make sure you have selected materials when hit 'set in slate'

(http://www.scriptspot.com/files/u96919/slatecusomsample.jpg)
http://www.scriptspot.com/3ds-max/scripts/slate-custom-sample-object (http://www.scriptspot.com/3ds-max/scripts/slate-custom-sample-object)
Title: Re: Material Editor sample object preview
Post by: Bormax on 2016-07-06, 19:55:15
Thank you Jahman!
Tried now this script, but got the error message
Title: Re: Material Editor sample object preview
Post by: steyin on 2016-07-06, 20:06:25
check it out
make sure you have selected materials when hit 'set in slate'

(http://www.scriptspot.com/files/u96919/slatecusomsample.jpg)
http://www.scriptspot.com/3ds-max/scripts/slate-custom-sample-object (http://www.scriptspot.com/3ds-max/scripts/slate-custom-sample-object)


That page doesn't exist it seems, only gives an error that I need to be logged in, which I am. Searching for that script turns up 0 results.
Title: Re: Material Editor sample object preview
Post by: Bormax on 2016-07-06, 20:25:33
That page doesn't exist it seems, only gives an error that I need to be logged in, which I am. Searching for that script turns up 0 results.

Yes, I didn't find this page too, but Jahman attached the script to his post, so I used that one
Title: Re: Material Editor sample object preview
Post by: Jahman on 2016-07-06, 21:47:11
yeah, scriptspot has premoderation so i've attached script in my first post.

:) I forgot to include some function. Should be working now.

I edited my post so you can download updated version.
Title: Re: Material Editor sample object preview
Post by: Bormax on 2016-07-06, 22:37:23
yeah, scriptspot has premoderation so i've attached script in my first post.

:) I forgot to include some function. Should be working now.

I edited my post so you can download updated version.

Thank you again!
Tried updated script - it works - sample object has been changed for selected materials , but script reset all values and colors of materials to default ones and disconnected all maps from them...
Title: Re: Material Editor sample object preview
Post by: Jahman on 2016-07-06, 22:57:58
omg, i see.
i got it working without reseting materials to their defaults but now i need to figure out how to update them.
sorry for those bugs, i've tested it on a simplest scene
updated ^
Title: Re: Material Editor sample object preview
Post by: Jahman on 2016-07-07, 14:02:28
...
Title: Re: Material Editor sample object preview
Post by: Bormax on 2016-07-07, 18:45:21
Finally it works as it supposed to.

Thank you very much for your tries!
Sorry to say, but this time the script crash Max. First it looks like nothing happened, but if I try to touch material editor Max falls down with offer to save recovered file
Title: Re: Material Editor sample object preview
Post by: Jahman on 2016-07-07, 19:55:39
Wonder what can cause that crash. What max version are you using?
2014x64 works well for me.
Title: Re: Material Editor sample object preview
Post by: Bormax on 2016-07-07, 20:13:07
Wonder what can cause that crash. What max version are you using?
2014x64 works well for me.

The same version of Max here. I tryed now to use it with vray - no problem, but with corona it doesn't work
Title: Re: Material Editor sample object preview
Post by: Jahman on 2016-07-07, 20:42:13
Found some other bug which caused crash in 2016.
And a bad news is that sample object mesh seems to update on max restart only.
Anyway I'll try to test it some more time with corona scene. Thx for your feedback