Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

setKeyPath [object]

setKeyPath is undoable, NOT queryable, and NOT editable.

The setKeyPath command either creates or edits the path (a nurbs curve) based on the current position of the selected object at the current time.

Return value

string[](Names of the created curve node and motionPath node)

Related

autoKeyframe, findKeyframe, setDrivenKeyframe, setKeyframe

MEL examples

// Apply setKeyPath command on the currently selected object at current time:
setKeyPath;

// Apply setKeyPath command on an object named "ball" at current time:
setKeyPath ball;