import VEX function

Imports attribute data from the SOP or POP connected to the specified input.

Contexts: pop, sop

  1. int import(string attrib_name, type result&; int input)

  2. int import(string attrib_name, type result&; int input; int pt_num)

  3. int import(string attrib_name; float values[] &; int input; int pt_num)

    This form lets you import attributes containing arbitrary length arrays of floats, such as capture data.

Imports attribute data from the SOP or POP connected to the specified input. Returns 1 and puts the data in result on success, or returns 0 on failure.

Possible reasons for failure are:

There are two forms of the import() function. The first form will import the attribute data from the current point that the VEX function is working on. The second form allows you to specify an arbitrary point number of the input. Point numbers are indexed from 0.