Houdini 12 VEX VEX functions

Imports a variable sent by a surface shader in an illuminance loop.

  1. int simport(string name, int value&)

  2. int simport(string name, float value&)

  3. int simport(string name, vector value&)

  4. int simport(string name, vector4 value&)

  5. int simport(string name, matrix value&)

  6. int simport(string name, matrix3 value&)

  7. int simport(string name, string value&)

Imports a variable from the surface shader.

Mantra runs the shaders for a surface in a fixed order:

  1. Displacement

  2. Surface (possibly calling light shaders in illuminance loops)

  3. Fog (possibly calling light shaders in illuminance loops)

Once the displacement shader has run, you can use dimport to retrieve exported variables from it. Once the surface shader has run, you can use simport to retrieve exported variables from it.

If the shader variable named by the first argument is defined and exported, the function returns 1 and puts the value in the second argument. Otherwise, it returns 0.

Contexts: fog, light, shadow

Related topics