flatten_layer

flatten_layer(layer, mode)
Flatten this layer in the previous one. Layers can be flatten according to several modes
  • In Destination Keys: Only keep the destination layer keys
  • Union Keys: Keep source and destination layers keys
  • All Frames: Bake the animation in all frames
Parameters:
  • layer (LayerNode) – The layer to flatten
  • mode (FlattenMode) – The flatten mode, might be In_Dest_Key, Union_Keys or All_Frames