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.
Method Summary
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.
PyNone insertKey(frame)
Adds an influence keyframe for the constraint Ipo.

Instance Variable Summary
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:
key - value from constraint's Constraint.Settings constant
           (type=int constant)
Returns:
the requested data
           (type=varies)
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:
key - value from constraint's Constraint.Settings constant
           (type=int constant)
Raises:
KeyError - the key does not exist for the constraint

insertKey(frame)

Adds an influence keyframe for the constraint Ipo.
Parameters:
frame - the frame number at which to insert the key.
           (type=float)
Returns:
PyNone

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

Generated by Epydoc 2.1 on Thu Jul 13 16:50:05 2006 http://epydoc.sf.net