Blender V4.3
blender::animrig::nla Namespace Reference

Namespaces

namespace  tests
 

Functions

bool assign_action (NlaStrip &strip, Action &action, ID &animated_id)
 
void unassign_action (NlaStrip &strip, ID &animated_id)
 
ActionSlotAssignmentResult assign_action_slot (NlaStrip &strip, Slot *slot_to_assign, ID &animated_id)
 
ActionSlotAssignmentResult assign_action_slot_handle (NlaStrip &strip, slot_handle_t slot_handle, ID &animated_id)
 

Function Documentation

◆ assign_action()

bool blender::animrig::nla::assign_action ( NlaStrip & strip,
Action & action,
ID & animated_id )

Assign the Action to this NLA strip.

Similar to animrig::assign_action(), this tries to find a suitable slot.

See also
blender::animrig::assign_action
Returns
whether a slot was automatically assigned.

Definition at line 19 of file animrig/intern/nla.cc.

References NlaStrip::act, NlaStrip::action_slot_name, assign_action_slot(), bAction::id, id_us_plus(), ID::name, blender::animrig::OK, blender::animrig::Action::slot_find_by_name(), and unassign_action().

Referenced by blender::animrig::nla::tests::TEST_F(), and blender::animrig::nla::tests::TEST_F().

◆ assign_action_slot()

ActionSlotAssignmentResult blender::animrig::nla::assign_action_slot ( NlaStrip & strip,
Slot * slot_to_assign,
ID & animated_id )

Assign a slot to the NLA strip.

The strip should already have an Action assigned to it, and the given Slot should belong to that Action.

Parameters
slot_to_assignthe slot to assign, or nullptr to un-assign the current slot.

Definition at line 69 of file animrig/intern/nla.cc.

References NlaStrip::act, NlaStrip::action_slot_handle, NlaStrip::action_slot_name, BLI_assert, and blender::animrig::generic_assign_action_slot().

Referenced by assign_action(), assign_action_slot_handle(), blender::animrig::nla::tests::TEST_F(), blender::animrig::nla::tests::TEST_F(), and unassign_action().

◆ assign_action_slot_handle()

ActionSlotAssignmentResult blender::animrig::nla::assign_action_slot_handle ( NlaStrip & strip,
slot_handle_t slot_handle,
ID & animated_id )

◆ unassign_action()