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

Class ActionStrips

source code

The ActionStrips object

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

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

__getitem__(index)
(Indexing operator)

source code 

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)

source code 

Returns the number of action strips for the object.

Returns: int
number of action strips

append(action)

source code 

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)

source code 

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)

source code 

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

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

moveUp(actionstrip)

source code 

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

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