Module Constraint :: Class Constraint
[hide private]
[frames] | no frames]

Class Constraint

source code

The Constraint object

This object provides access to a constraint for a particular object accessed from Constraints.

Instance Methods [hide private]
varies
__getitem__(key)
This operator returns one of the constraint's data attributes.
source code
 
__setitem__(key)
This operator changes one of the constraint's data attributes.
source code
None
insertKey(frame)
Adds an influence keyframe for the constraint Ipo.
source code
Instance Variables [hide private]
float influence
The influence value of the constraint.
string name
The name of this constraint.
int type
The type of this constraint.
Method Details [hide private]

__getitem__(key)
(Indexing operator)

source code 

This operator returns one of the constraint's data attributes.

Parameters:
Returns: varies
the requested data
Raises:
  • KeyError - the key does not exist for the constraint

__setitem__(key)
(Index assignment operator)

source code 

This operator changes one of the constraint's data attributes.

Parameters:
Raises:
  • KeyError - the key does not exist for the constraint

insertKey(frame)

source code 

Adds an influence keyframe for the constraint Ipo.

Parameters:
  • frame (float) - the frame number at which to insert the key.
Returns: None

Instance Variable Details [hide private]

influence

The influence value of the constraint. Valid values are in the range [0.0,1.0].
Type:
float

name

The name of this constraint. 29 chars max.
Type:
string

type

The type of this constraint. Read-only. The returned value matches the types in Type.
Type:
int