Set the infinity type before (after) a paramCurve’s first (last) keyframe. In query mode, return type is based on queried flag.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| attribute (at) | unicode |   | |
| 
 | |||
| controlPoints (cp) | bool |   | |
| This flag explicitly specifies whether or not to include the control points of a shape (see “-s” flag) in the list of attributes. Default: false. (Not valid for “pasteKey” cmd.) | |||
| hierarchy (hi) | unicode |   | |
| 
 | |||
| postInfinite (poi) | unicode |     | |
| Set the infinity type after a paramCurve’s last keyframe. Valid values are “constant”, “linear”, “cycle”, “cycleRelative”, “oscillate”.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. | |||
| preInfinite (pri) | unicode |     | |
| 
 | |||
| shape (s) | bool |   | |
| 
 | |||
Derived from mel command maya.cmds.setInfinity
Example:
import pymel.core as pm
pm.setInfinity( pri='linear', poi='constant' )