Convert a USD value (such as Gf.Quat, Gf.Vec3, or float) to a Warp value.
If a dtype is given, the value will be converted to that dtype.
Otherwise, the value will be converted to the most appropriate Warp dtype.
- Parameters:
v (Any) – The value to convert.
warp_dtype (Any | None) – The Warp dtype to convert to. If None, the value will be converted to the most appropriate Warp dtype.
- Returns:
The converted value.
- Return type:
Any