Houdini 11 VEX VEX functions

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

  1. string getobjectname()

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

  • For light/shadow contexts, this is the name of the light object which has the shader bound to it.

  • For surface/displacement contexts, this is the name of the object being shaded.

  • For fog shaders, the function will also return the name of the atmosphere object being shaded.

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