UserData

Overview

An object used to encapsulate arbitrary, user-specified primitive attributes. Geometry objects can specify a list UserData objects using the primitive_attributes parameter. The data is then available for shading or AOVs using an AttributeMap. See RdlPointGeometry for an example.


Attribute Reference

General attributes

bool_key

String
default:

key name for bool type user data

bool_values

BoolVector
default: {}

bool type user data values

color_key

String
default:

key name for color type user data

color_values_0

RgbVector
default: {}

color type user data values for motion step 0

color_values_1

RgbVector
default: {}

color type user data values for motion step 1

float_key

String
default:

key name for float type user data

float_values_0

FloatVector
default: {}

float type user data values for motion step 0

float_values_1

FloatVector
default: {}

float type user data values for motion step 1

int_key

String
default:

key name for integer type user data

int_values

IntVector
default: {}

integer type user data values

mat4f_key

String
default:

key name for mat4f type user data

mat4f_values_0

Mat4fVector
default: {}

mat4f type user data values for motion step 0

mat4f_values_1

Mat4fVector
default: {}

mat4f type user data values for motion step 1

string_key

String
default:

key name for string type user data

string_values

StringVector
default: {}

string type user data values

vec2f_key

String
default:

key name for vec2f type user data

vec2f_values_0

Vec2fVector
default: {}

vec2f type user data values for motion step 0

vec2f_values_1

Vec2fVector
default: {}

vec2f type user data values for motion step 1

vec3f_key

String
default:

key name for vec3f type user data

vec3f_values_0

Vec3fVector
default: {}

vec3f type user data values for motion step 0

vec3f_values_1

Vec3fVector
default: {}

vec3f type user data values for motion step 1