pymel.core.animation.setInfinity

static animation.setInfinity(*args, **kwargs)

Set the infinity type before (after) a paramCurve’s first (last) keyframe. In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
attribute (at) unicode ../../../_images/create.gif
 
List of attributes to select
controlPoints (cp) bool ../../../_images/create.gif
 

This flag explicitly specifies whether or not to include the control points of a shape (see -sflag) in the list of attributes. Default: false. (Not valid for pasteKeycmd.)

hierarchy (hi) unicode ../../../_images/create.gif
 
Hierarchy expansion options. Valid values are above,below,both,and none.(Not valid for pasteKeycmd.)
postInfinite (poi) unicode ../../../_images/create.gif ../../../_images/query.gif
 

Set the infinity type after a paramCurve’s last keyframe. Valid values are constant, linear, cycle, cycleRelative, oscillate. Flag can have multiple arguments, passed either as a tuple or a list.

preInfinite (pri) unicode ../../../_images/create.gif ../../../_images/query.gif
 
Set the infinity type before a paramCurve’s first keyframe. Valid values are constant, linear, cycle, cycleRelative, oscillate.
shape (s) bool ../../../_images/create.gif
 
Consider attributes of shapes below transforms as well, except controlPoints. Default: true. (Not valid for pasteKeycmd.)

Derived from mel command maya.cmds.setInfinity

Example:

import pymel.core as pm

pm.setInfinity( pri='linear', poi='constant' )

Previous topic

pymel.core.animation.setDrivenKeyframe

Next topic

pymel.core.animation.setKeyPath

Core

Core Modules

Other Modules

This Page