dirt/brick material problem with 'create local paramters'

   6401   2   1
User Avatar
Member
205 posts
Joined: Dec. 2009
Offline
Hi,

with sidefx's materials from the orbolt store, I can't create all parameters in the obj's material pane without destroying references to the texture files. The materials render in red color.

I assume a problem with the map's opdef expression (possibly path or context related)…

How can I fix this myself? Or somebody else?

Cheers
User Avatar
Member
268 posts
Joined: July 2005
Offline
Hi Bollili,

yeah the expression is looking at the current node which changes from the shop to the object node when you ‘create all parameters’ option. You can get it to work by changing the expression to the following on the object node map parameters (it evaluates the Material shop path and gets whatever the shop it points to, and then it grabs the texture)

opdef:`pythonexprs(“hou.node(hou.pwd().parm('shop_materialpath').eval()).type().nameWithCategory()”)`?Brick_Red_CLR.rat

Adam
User Avatar
Member
205 posts
Joined: Dec. 2009
Offline
Cool.

Thank you!!!
  • Quick Links