getobjectname VEX function

Returns the name of the current “object” whose shader is being run.

Contexts: displace, fog, light, photon, shadow, surface

  1. string getobjectname()

Returns the name of the current “object” whose shader is being run.