objlightmask in MR SHOPs

   2158   1   1
User Avatar
Member
543 posts
Joined: July 2005
Offline
Hi there,

When using the following expression:
`objlightmask($OBJ, fa)`

in a mental ray SHOP for determining the light mask (which has this expression set as default), the string it returns is NULL.

However, when doing something like:
`objlightmask(“/obj/model”, fa)`

the light list is returned correctly. So it appears $OBJ is not expanding correctly. I thought $OBJ was a valid variable in any context where one needs to get the object name.

Bug? Work around?

Thanks!


–Mark
========================================================
You are no age between space
User Avatar
Member
7710 posts
Joined: July 2005
Online
I don't think $OBJ returns you the path to the node. It looks like it only returns the name of it? So you need to prepend an appropriate relative string prefix?
  • Quick Links