Houdini 12 VEX VEX functions

Stores exported data on a light.

  1. storelightexoprts(string lightname)

Before calling this method, assign the values you want to export to export parameters.

surface test(export vector perlight = {0,0,0})
{
    int             i;
    int             lights[] = array();

    lights = getlights();
    for (i = 0; i < arraylength(lights); i++)
    {
        perlight = set(lights[i], 0, 0);
        storelightexports(getlightname(lights[i]));
    }
}

Contexts: displace, fog, light, shadow, surface