addvariablename VEX function

Adds the mapping of the attribute aname to the local variable vname.

Contexts: pop, sop

  1. void addvariablename(string aname, string vname)

Adds the mapping of the attribute aname to the local variable vname. In SOPs that support this, such as the Point SOP, one will then have the local variable $vname referencing the attribute aname. This emulates the behavior of the AttribCreate SOP.