Go to: Synopsis. Return value. Related. MEL examples.
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.
|string||(Names of the created curve node and motionPath node)|
// 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;