Module Constraint :: Class Constraint

Class Constraint

source code

The Constraint object

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

Instance Methods
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
float influence
The influence value of the constraint.
string name
The name of this constraint.
int type
The type of this constraint.
Method Details

__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

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