Module NLA :: Class ActionStrips
[frames] | no frames]

Class ActionStrips

The ActionStrips object

This object gives access to sequence of ActionStrip objects for a particular Object.

Instance Methods
ActionStrip
__getitem__(index)
This operator returns one of the action strips in the stack.
int
__len__()
Returns the number of action strips for the object.
ActionStrip
append(action)
Appends a new action to the end of the action strip sequence.
 
remove(actionstrip)
Remove an action strip from this object's actionstrip sequence.
 
moveDown(actionstrip)
Move the action strip down in the object's actionstrip sequence.
 
moveUp(actionstrip)
Move the action strip up in the object's actionstrip sequence.
Method Details

__getitem__(index)
(Indexing operator)

 

This operator returns one of the action strips in the stack.

Parameters:
  • index (int)
Returns: ActionStrip
an action strip object
Raises:
  • KeyError - index was out of range

__len__()
(Length operator)

 

Returns the number of action strips for the object.

Returns: int
number of action strips

append(action)

 

Appends a new action to the end of the action strip sequence.

Parameters:
  • action (Action) - the action to use in the action strip
Returns: ActionStrip
the new action strip

remove(actionstrip)

 

Remove an action strip from this object's actionstrip sequence.

Parameters:
  • actionstrip (an action strip from this sequence to remove.)

Note: Accessing attributes of the action strip after it is removed will throw an exception.

moveDown(actionstrip)

 

Move the action strip down in the object's actionstrip sequence.

Parameters:
  • actionstrip (an action strip from this sequence.)

moveUp(actionstrip)

 

Move the action strip up in the object's actionstrip sequence.

Parameters:
  • actionstrip (an action strip from this sequence.)