pub struct BlendShapeTimeSamples {
pub shape_name: String,
pub time_weight_pairs: Vec<(f64, f32)>,
}Expand description
Time-sampled weight data for a single blend shape used in a SkelAnimation prim.
Each entry pairs a time code (in USD time units, typically frames) with the
normalised blend weight (0.0 = no effect, 1.0 = full effect) for the named
shape at that moment. The time_weight_pairs slice does not need to be
pre-sorted — UsdaWriter::write_blend_shape_animation will sort by time
internally before emitting the timeSamples block.
Fields§
§shape_name: StringName of this blend shape (e.g. "smile", "frown").
time_weight_pairs: Vec<(f64, f32)>(time_code, weight) pairs — will be sorted ascending by time code.
Auto Trait Implementations§
impl Freeze for BlendShapeTimeSamples
impl RefUnwindSafe for BlendShapeTimeSamples
impl Send for BlendShapeTimeSamples
impl Sync for BlendShapeTimeSamples
impl Unpin for BlendShapeTimeSamples
impl UnsafeUnpin for BlendShapeTimeSamples
impl UnwindSafe for BlendShapeTimeSamples
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more