Home Reference Expression functions 

point expression function

Returns the value of a point attribute.

Usage

point(surface_node, point_number, attribute, index)

attribute is the name of the attribute (eg. “Cd” for diffuse color). Two special attributes exist “P” and “Pw” which represent the position of the point in space (“Pw” allows you to access the W component of the position).

Note

This function will interpolate between point values if the point number is fractional, such as 3.35

Examples

point("/obj/geo1/facet1", 3, "P", 0)

Returns the X component of point 3 of the facet1 surface node in geo1.

point("/obj/geo1/facet1", 3, "N", 2)

Returns the Z component of the normal attribute of point 3 in the facet1 surface node of object geo1.