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

Synopsis

bluePencilFrame [-activeViewport] [-clear] [-copy] [-cutFrame] [-delete] [-duplicate] [-exportFrames] [-importFrames] [-insert] [-move int int int] [-moveToNext] [-paste] [-relative] [-retime int] [-scale float boolean int int] [-stepBack] [-stepForward]

bluePencilFrame is undoable, NOT queryable, and NOT editable.

Command to create or edit blue pencil frames.

Return value

None

Flags

activeViewport, clear, copy, cutFrame, delete, duplicate, exportFrames, importFrames, insert, move, moveToNext, paste, relative, retime, scale, stepBack, stepForward
Long name (short name) Argument types Properties
-activeViewport(-avp) create
Create the frame in the active viewport's camera.
-clear(-clr) create
Erase the data from one or more frames using the highlighted range in Maya's time slider.
-copy(-cp) create
Copy the frame data in the selected range to the clipboard.
-cutFrame(-cut) create
Copy the frame data in the selected range to the clipboard and remove the frames.
-delete(-del) create
Remove one or more frames using the highlighted range in Maya's time slider.
-duplicate(-dup) create
Insert a frame at the current time that is a duplicate of the previous frame.
-exportFrames(-ex) create
Show blue pencil export frame dialog.
-importFrames(-im) create
Show blue pencil import frame dialog.
-insert(-ins) create
Insert one or more empty frames using the highlighted range in the time slider.
-move(-mv) int int int create
Move the frames in the specified range by the given offset. Arguments are offset, range start, range end.
-moveToNext(-mvn) create
Move the current time to the next frame after retiming.
-paste(-pst) create
Create new frames using the data in the clipboard at the current time.
-relative(-rel) create
Set the retime action to shift the frames by a relative amount to add or remove space between frames. When the flag is not set, the spacing between the frames is set to the retime value.
-retime(-ret) int create
Shift frames or change the frame spacing in a selected range.
-scale(-sc) float boolean int int create
Scale the frames in the specified range by the given factor. Arguments are scale factor, scale from end (true) or beginning (false), range start, range end.
-stepBack(-sb) create
Set the current time to the previous blue pencil frame's time.
-stepForward(-sf) create
Set the current time to the next blue pencil frame's time.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Frame actions.
bluePencilFrame -ins;
bluePencilFrame -dup;
bluePencilFrame -del;
bluePencilFrame -cut;
bluePencilFrame -cp;
bluePencilFrame -pst;
bluePencilFrame -clr;
bluePencilFrame -stepForward;
bluePencilFrame -stepBack;

// Set the distance to the next frame to 5.
bluePencilFrame -retime 5;

// Add 5 to the space to the next frame.
bluePencilFrame -retime 5 -relative;

// Set the distance to the next frame to 5 and then set the current time to the next frame.
bluePencilFrame -retime 5 -moveToNext;

// Move frames between 5 and 9 by 15 frames.
bluePencilFrame -move 15 5 9;

// Scale frames between 5 and 9 by 2 from the beginning.
bluePencilFrame -scale 2.0 0 5 9;

// Launch import frame dialog.
bluePencilFrame -importFrames;

// Launch export frame dialog.
bluePencilFrame -exportFrames;