Blender V5.3
blender::bke::nla Namespace Reference

Functions

bool foreach_strip (ID *id, FunctionRef< bool(NlaStrip *)> callback)
bool foreach_strip_adt (const AnimData &adt, FunctionRef< bool(NlaStrip *)> callback)

Function Documentation

◆ foreach_strip()

bool blender::bke::nla::foreach_strip ( ID * id,
FunctionRef< bool(NlaStrip *)> callback )

Call the callback for every strip of this ID's NLA.

Automatically recurses into meta-strips.

The callback should return a 'keep going' status, i.e. true to keep looping, and false to break the loop.

Returns
the last value returned by the callback, so true if the loop ran until the end, and false it was stopped by the callback. When there is no NLA or it has no strips, returns true because the loop ran until its natural end and wasn't stopped by the callback.

Definition at line 2814 of file blenkernel/intern/nla.cc.

References blender::BKE_animdata_from_id(), foreach_strip(), and foreach_strip_adt().

Referenced by foreach_strip().

◆ foreach_strip_adt()

bool blender::bke::nla::foreach_strip_adt ( const AnimData & adt,
FunctionRef< bool(NlaStrip *)> callback )

Call the callback for every strip of this AnimData's NLA.

Automatically recurses into meta-strips.

The callback should return a 'keep going' status, i.e. true to keep looping, and false to break the loop.

Returns
the last value returned by the callback, so true if the loop ran until the end, and false it was stopped by the callback. When there is no NLA or it has no strips, returns true because the loop ran until its natural end and wasn't stopped by the callback.

Definition at line 2824 of file blenkernel/intern/nla.cc.

References foreach_strip_adt(), blender::AnimData::nla_tracks, blender::NlaTrack::strips, and blender::visit_strip().

Referenced by blender::animrig::foreach_action_slot_use_with_references(), blender::animrig::foreach_action_slot_use_with_rna(), foreach_strip(), foreach_strip_adt(), and blender::long_id_names_process_action_slots_identifiers().