Author Topic: Material Editor sample object preview  (Read 9012 times)

2016-07-05, 21:46:11

Bormax

  • Active Users
  • **
  • Posts: 568
    • View Profile
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!

2016-07-06, 18:49:13
Reply #1

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
check it out
make sure you have selected materials when hit 'set in slate'


http://www.scriptspot.com/3ds-max/scripts/slate-custom-sample-object
« Last Edit: 2016-07-07, 13:59:19 by Jahman »

2016-07-06, 19:55:15
Reply #2

Bormax

  • Active Users
  • **
  • Posts: 568
    • View Profile
Thank you Jahman!
Tried now this script, but got the error message

2016-07-06, 20:06:25
Reply #3

steyin

  • Active Users
  • **
  • Posts: 375
  • BALLS
    • View Profile
    • Instagram Page
check it out
make sure you have selected materials when hit 'set in slate'


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.

2016-07-06, 20:25:33
Reply #4

Bormax

  • Active Users
  • **
  • Posts: 568
    • View Profile
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

2016-07-06, 21:47:11
Reply #5

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
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.

2016-07-06, 22:37:23
Reply #6

Bormax

  • Active Users
  • **
  • Posts: 568
    • View Profile
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...

2016-07-06, 22:57:58
Reply #7

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
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 ^

2016-07-07, 14:02:28
Reply #8

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
...
« Last Edit: 2016-07-07, 20:42:37 by Jahman »

2016-07-07, 18:45:21
Reply #9

Bormax

  • Active Users
  • **
  • Posts: 568
    • View Profile
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

2016-07-07, 19:55:39
Reply #10

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
Wonder what can cause that crash. What max version are you using?
2014x64 works well for me.

2016-07-07, 20:13:07
Reply #11

Bormax

  • Active Users
  • **
  • Posts: 568
    • View Profile
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

2016-07-07, 20:42:13
Reply #12

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
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