Trim CHOP

From TouchDesigner 099 Wiki

Summary

The Trim CHOP shortens or lengthens the input's channels. A part of the interval can be preserved or removed. If the channels are being lengthened, the extend conditions of the channel will be used to get the new values.

The Trim CHOP is sometimes used to get a 1-sample value at the current frame, where the inputs are channels at frame 0 or channels at some other frame range.

The handles on the Trim CHOP in the graph can interactively adjust its length.

See also Splice CHOP, Delete CHOP, Select CHOP

PythonIcon.png trimCHOP_Class

Parameters

Unit Values - Determines whether the Start/End parameters are expressed as absolute numbers (relative to time 0) or numbers that are relative to the start and end of the input channels.

  • Absolute - The Start and End are the actual numbers defining the new interval.
  • Relative to Start/End - The Start and End are relative to the start and end of the input CHOP.
  • Relative to Current Frame - only one sample is output, containing the channel values at the current frame.
  • Current Time Slice - channel value is based on the current time slice.

Start, End /start, /end - The start / end of the range to trim. The numbers are expressed in seconds, frames or samples, depending on units menu for each parameter.

NOTE: If the Start Value is greater than the End Value, the Trim CHOP will behave as if both values are the Start Value.

Discard - Which part of the channel to discard:

  • Exterior - Discard those parts of the channel outside the trim range.
  • Interior - Discard the interior of the trim range. If two intervals remain, sequence them together.

The CHOP is shortened by increasing the Start relative value, and lengthened by decreasing it. The CHOP is lengthened by increasing the End relative value, and shortened by decreasing it.

See the Extend CHOP for more details on the extend conditions.

Standard Options and Local Variables

There are no local variables.