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

Class Constraint

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.
 
__setitem__(key)
This operator changes one of the constraint's data attributes.
None
insertKey(frame)
Adds an influence keyframe for the constraint Ipo.
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)

 

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)

 

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

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

insertKey(frame)

 

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