paste_keys

paste_keys(to_paste, matched_channels, dest_layer: Node, frame_in: float, frame_out: float, to_frame: float, mode: PasteMode) → None

Paste values onto matching channels in a targeted layer.

frame_in and frame_out are used in Replace and Insert modes only. frame_in and frame_out define a range in the input curve time space. In Replace mode, the keys of the destination curve in the interval [frame_in+delta, frame_out+delta] will be erased before the paste operation. In Insert mode, an empty interval will be inserted in [frame_in+delta, frame_out+delta] before the paste operation.

Parameters:
  • to_paste – The values to be pasted
  • dest_layer (Node) – The destination layer
  • frame_in (float) – Starting frame of the pasted values
  • frame_out (float) – Ending frame of the pasted values
  • to_frame (float) – Destination frame in the destination layer
  • mode (PasteMode) – Paste mode, merge by default
Return type:

None