ジャンプ先: 概要. 戻り値. フラグ. Python 例.
bluePencilFrame([activeViewport=boolean], [clear=boolean], [copy=boolean], [cutFrame=boolean], [delete=boolean], [duplicate=boolean], [exportArchive=string], [exportFrames=boolean], [importArchive=string], [importFrames=boolean], [insert=boolean], [move=[int, int, int]], [moveCopy=[int, int, int]], [moveToNext=boolean], [paste=boolean], [relative=boolean], [retime=int], [scale=[float, boolean, int, int]], [scaleCopy=[float, boolean, int, int]], [stepBack=boolean], [stepForward=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
bluePencilFrame は、取り消し可能、照会不可能、および編集不可能です。
Blue Pencil フレームを作成または編集するためのコマンド。
なし
activeViewport, clear, copy, cutFrame, delete, duplicate, exportArchive, exportFrames, importArchive, importFrames, insert, move, moveCopy, moveToNext, paste, relative, retime, scale, scaleCopy, stepBack, stepForward
ロング ネーム(ショート ネーム) |
引数タイプ |
プロパティ |
|
activeViewport(avp)
|
boolean
|
|
|
アクティブなビューポートのカメラにフレームを作成します。
|
|
clear(clr)
|
boolean
|
|
|
Maya のタイム スライダでハイライトされている範囲を使用して、1 つまたは複数のフレームからデータを消去します。
|
|
copy(cp)
|
boolean
|
|
|
選択した範囲内のフレーム データをクリップボードにコピーします。
|
|
cutFrame(cut)
|
boolean
|
|
|
選択した範囲内のフレーム データをクリップボードにコピーし、フレームを削除します。
|
|
delete(delete)
|
boolean
|
|
|
Maya のタイム スライダでハイライトされている範囲を使用して、1 つまたは複数のフレームを削除します。
|
|
duplicate(dup)
|
boolean
|
|
|
前のフレームの複製である現在のタイムにフレームを挿入します。
|
|
exportArchive(ea)
|
string
|
|
|
指定したパスに Blue Pencil のフレーム アーカイブを書き出します。
|
|
exportFrames(ex)
|
boolean
|
|
|
[Blue Pencil のフレーム書き出し](Blue Pencil Export Frame)ダイアログ ボックスを表示します。
|
|
importArchive(ia)
|
string
|
|
|
指定したパスから Blue Pencil のフレーム アーカイブを読み込みます。
|
|
importFrames(im)
|
boolean
|
|
|
[Blue Pencil のフレーム読み込み](Blue Pencil Import Frame)ダイアログ ボックスを表示します。
|
|
insert(ins)
|
boolean
|
|
|
タイム スライダでハイライト表示されている範囲を使用して、1 つまたは複数の空のフレームを挿入します。
|
|
move(mv)
|
[int, int, int]
|
|
|
指定した範囲のフレームを指定したオフセットだけ移動します。引数は、offset、range start、range end です。
|
|
moveCopy(mvc)
|
[int, int, int]
|
|
|
指定した範囲のフレームをコピーし、指定したオフセットだけ移動します。引数は、offset、range start、range end です。
|
|
moveToNext(mvn)
|
boolean
|
|
|
リタイミング後に現在のタイムを次のフレームに移動します。
|
|
paste(pst)
|
boolean
|
|
|
現在のタイムのクリップボードのデータを使用して新しいフレームを作成します。
|
|
relative(rel)
|
boolean
|
|
|
フレーム間のスペースを追加または削除するために、リタイム アクションを設定してフレームを相対的な量だけ移動します。フラグを設定しない場合、フレーム間の間隔はリタイム値に設定されます。
|
|
retime(ret)
|
int
|
|
|
フレームをシフトするか、選択した範囲のフレーム間隔を変更します。
|
|
scale(sc)
|
[float, boolean, int, int]
|
|
|
指定した範囲のフレームを指定した係数でスケールします。引数は、scale factor、scale from end (true) または beginning (false)、range start、range end です。
|
|
scaleCopy(scc)
|
[float, boolean, int, int]
|
|
|
指定した範囲のフレームをコピーし、指定した係数でスケールします。引数は、scale factor、scale from end (true) または beginning (false)、range start、range end です。
|
|
stepBack(sb)
|
boolean
|
|
|
現在のタイムを前の Blue Pencil フレームのタイムに設定します。
|
|
stepForward(sf)
|
boolean
|
|
|
現在のタイムを次の Blue Pencil フレームのタイムに設定します。
|
|
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Frame actions.
cmds.bluePencilFrame(ins=True)
cmds.bluePencilFrame(dup=True)
cmds.bluePencilFrame(del=True)
cmds.bluePencilFrame(cut=True)
cmds.bluePencilFrame(cp=True)
cmds.bluePencilFrame(pst=True)
cmds.bluePencilFrame(clr=True)
cmds.bluePencilFrame(stepForward=True)
cmds.bluePencilFrame(stepBack=True)
# Set the distance to the next frame to 5.
cmds.bluePencilFrame(retime=5)
# Add 5 to the space to the next frame.
cmds.bluePencilFrame(retime=5, relative=True)
# Set the distance to the next frame to 5 and then set the current time to the next frame.
cmds.bluePencilFrame(retime=5, moveToNext=True)
# Move frames between 5 and 9 by 15 frames.
cmds.bluePencilFrame(move=(15, 5, 9))
# Move frames between 5 and 9 by 15 frames while leaving a copy of the initial keys in their original location.
cmds.bluePencilFrame(moveCopy=(15, 5, 9))
# Scale frames between 5 and 9 by 2 from the beginning.
cmds.bluePencilFrame(scale=(2.0, 0, 5, 9))
# Scale frames between 5 and 9 by 2 from the beginning while leaving a copy of the initial keys in their original location.
cmds.bluePencilFrame(scaleCopy=(2.0, 0, 5, 9))
# Launch import frame dialog.
cmds.bluePencilFrame(importFrames=True)
# Launch export frame dialog.
cmds.bluePencilFrame(exportFrames=True)
# Import a blue pencil frame archive without the file browser dialog
cmds.bluePencilFrame(importArchive='C:/archives/bluePencil.zip')
# Export a blue pencil frame archive without the file browser dialog
cmds.bluePencilFrame(exportArchive='C:/archives/bluePencil.zip')