add_plugs_to_layer

add_plugs_to_layer(plugs: list(Plug), layer: Node, check_editable: bool, selection_mask: bool) bool

Update the animation graph so that these plug channels are animated in the layer.

If any channel’s value is composed of different sub-channels, e.g. M44d, the value will be rigged and the sub-channels will be animated in the layer. Returns false if this channel can’t be assigned to the layer.

Parameters
  • plugs (list(Plug)) – The plugs

  • layer (Node) – The layer

  • check_editable (bool) – Do we force plug addition (defaults to no)

  • selection_mask (bool) – Should the channel selection limit which plugs get added

Return type

bool