You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The temporal velocity value at the current time. For spatial properties, such as Position, it returns the tangent vector value. The result is the same dimension as the property.
287
+
*/
286
288
readonlyvelocity: PropertyValueType=this.value;
289
+
/**
290
+
* @returns The temporal velocity value at the specified time. For spatial properties, such as Position, it returns the tangent vector value. The result is the same dimension as the property.
291
+
* @param time The composition time in seconds to get the velocity at
292
+
*/
287
293
velocityAtTime(time: number): PropertyValueType{
288
294
returnthis.velocity;
289
295
}
296
+
/**
297
+
* A 1D, positive speed value equal to the speed at which the property is changing at the default time. This element can be used only for spatial properties.
298
+
*/
290
299
readonlyspeed: PropertyValueType=this.value;
300
+
/**
301
+
* @returns A 1D, positive speed value equal to the speed at which the property is changing at the specified time. This element can be used only for spatial properties.
302
+
* @param time The composition time in seconds to get the speed at
303
+
*/
291
304
speedAtTime(time: number): PropertyValueType{
292
305
returnthis.speed;
293
306
}
307
+
/**
308
+
* Returns the value for the property at the specified time
309
+
* @param time THe composition time in seconds to get the value at
310
+
*/
294
311
valueAtTime(time: number): PropertyValueType{
295
312
returnthis.value;
296
313
}
314
+
/**
315
+
* Modifies the property value randomly over time.
316
+
* @param freq The rate at which the value changes in wiggles per second
317
+
* @param amp How much the value should change, in units of the original property value (e.g. `1` by 100% of the original value)
318
+
* @param octaves How much detail the wiggle has, which is driven by the number of "octaves" of noise to multiply together. Higher values will have more detail
319
+
* @param amp_mult The amount the given amplitude is multiplied by for each octave, which controls the falloff of the upper harmonics ("octaves").
320
+
* @param time The time at which the value is sampled for use within the wiggle
321
+
*/
297
322
wiggle(
298
323
freq: number,
299
324
amp: number,
300
-
octaves?: number,
301
-
amp_mult?: number,
302
-
time?: number
325
+
octaves: number=1,
326
+
amp_mult: number=0.5,
327
+
time: number=thisLayer.time
303
328
): PropertyValueType{
304
329
returnthis.value;
305
330
}
331
+
/**
332
+
* Samples the property value at a time which is wiggled
333
+
* @param freq The rate at which the value changes in wiggles per second
334
+
* @param amp How much the value should change, in units of the original property value (e.g. `1` by 100% of the original value)
335
+
* @param octaves How much detail the wiggle has, which is driven by the number of "octaves" of noise to multiply together. Higher values will have more detail
336
+
* @param amp_mult The amount the given amplitude is multiplied by for each octave, which controls the falloff of the upper harmonics ("octaves").
337
+
* @param time The time at which the value is sampled for use within the wiggle
* Smooths the property values over time, converting large, brief deviations in the value to smaller, more evenly distributed deviations. This smoothing is accomplished by applying a box filter to the value of the property at the specified time.
350
+
* @param width The range of time (in seconds) over which the filter is averaged.
351
+
* @param samples The number of discrete samples evenly spaced over time; use a larger value for greater smoothness (but decreased performance). Generally, you’ll want samples to be an odd number so that the value at the current time is included in the average.
0 commit comments