Scene material

   1068   7   0
User Avatar
Member
1425 posts
Joined: March 2014
Offline
Hey there,
Can anyone tell me how (if possible at all) would one access Houdini “scene material”?
The default grey mat. every imported object inherits seems to be a very elusive feature. Am I missing something?
As always, googled it before posting, but nothing relevant surfaced as far as I was able to figure.
https://www.artstation.com/artist/mcnistor [www.artstation.com]
Happy place escapee.
User Avatar
Member
3759 posts
Joined: June 2012
Offline
It's this:

HOUDINI_VEX_DEFAULT_SURFACE := ‘opdefVop/defaultshader’

it used to be the shop plastic but looks like it has been updated to the Mat context.
User Avatar
Member
1425 posts
Joined: March 2014
Offline
OK, I was hoping to be able to modify it in Houdini interface and save it as default instead of setting env. var.

But since it seems that I have to do this, I might as well spread myself thin here and learn how to deal with Houdini env var.
So, I've searched in my file manager for “defaultshader” and it returned one single file with no extention in \houdini\config\Dialogs\VOP\ no .vfl or .vex with that name.

What am I missing?
Also, the help on env. var. is pretty sketchy http://www.sidefx.com/docs/houdini/basics/config_env#setting-environment-variables [www.sidefx.com]
Edited by inhiding - June 12, 2017 06:31:25
https://www.artstation.com/artist/mcnistor [www.artstation.com]
Happy place escapee.
User Avatar
Member
3759 posts
Joined: June 2012
Offline
I'm not sure what's changed afaik Mat context is just shops with a prepender to make it more seamless when you drag nodes to the viewport.
User Avatar
Staff
4185 posts
Joined: July 2005
Offline
If you're just looking to change the default viewport material, there are some display options in the Effects tab which allow you to change the various colors.
User Avatar
Member
1425 posts
Joined: March 2014
Offline
Thanks for the info, that might come in handy some time, but I'm not looking to just change how objects look in vp. I'd like all the objects that I create or import to inherit a specific/custom material. It's not awfully inconvenient to select them and assign the mat I want afterwards, it's just that I was hoping to able to get away with not doing this extra step.
BTW, my expectation comes from, you guessed it, where in every scene there's a “scene material” (named exactly like this IIRC) which gets assigned to every new object you create/import (object duplication being an exception). This mat has a simple phong shader connected to the surface input, so if this feature ever gets into H, principled, classic, w/e will the trend be at that time will be just dandy.
https://www.artstation.com/artist/mcnistor [www.artstation.com]
Happy place escapee.
User Avatar
Staff
4185 posts
Joined: July 2005
Offline
In that case, you could add the material path to the Object Material parameter and do “RMB > Make Current Value Default”.
User Avatar
Member
1425 posts
Joined: March 2014
Offline
Yep, that works. Thanks!
https://www.artstation.com/artist/mcnistor [www.artstation.com]
Happy place escapee.
  • Quick Links