setConstantPrimvar#
Fully qualified name: usdex::core::setConstantPrimvar
- bool usdex::core::setConstantPrimvar(
- pxr::UsdPrim prim,
- const std::string &name,
- const pxr::TfToken &value,
- pxr::UsdTimeCode time = pxr::UsdTimeCode::Default(),
Set data on an existing constant primvar from a single scalar value.
This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.
- Parameters:
prim – The prim that owns the primvar
name – The primvar name (not including the
primvars:prefix)value – The constant primvar value
time – The time at which the value is written
- Returns:
Whether the primvar was successfully set.