_getDefaultSingleVtValue#

Fully qualified name: usd_optimize::_getDefaultSingleVtValue

PXR_NS::VtValue usd_optimize::_getDefaultSingleVtValue(
const PXR_NS::VtValue &value,
)#

Given a VtValue, this function attempts to return a default single value of the same type, or the element type if the VtValue holds an array.

For example, for a VtValue holding an int this function would return a VtValue holding an int with a value of 0. And for a VtValue holding an VtArray<int> this function would also return a VtValue holding a single int with a value of 0.

Parameters:

value – The VtValue to get a default single value for.

Returns:

A default single VtValue of the same type or element type - or an empty VtValue if unsupported.