ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
defineDataServer([device=string], [server=string], [undefine=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
defineDataServer は、取り消し可能、照会不可能、および編集不可能です。
デバイス ハンドラにアタッチできる指定したデバイスを作成する、指定したデータのサーバ名に接続します。
デバイスが定義されると、そのデバイスはサーバのデータ軸情報を検索します。「CapChannels」は、スカラー チャネルの場合「channelName」.「listInputDeviceAxes」を参照してください。「usage」、複合チャネルの場合 「channelName」.「componente」 の書式で軸情報として示されます。軸の名前をリストするには、listInputDeviceAxes を参照してください。
defineDataServer -d "myDevice" -s "myServer"
を元に戻しても、やり直しできなくなるまで、データ サーバとの接続は解除されません。他の任意のコマンド(sphere など)を実行することによって、再実行ができなくなり、データ サーバとの接続が切断します。同様に、コマンド
defineDataServer -d "myDevice" -u
は、元に戻せなくなるまでデータ サーバとの接続を解除しません。flushUndo が実行されるか、「defineDataServer」コマンドが元に戻す待ち行列の末尾から削除されると取り消しができなくなり、データ サーバとの接続が切断します。
戻り値はありません。
なし
applyTake, defineVirtualDevice, enableDevice, filter, movIn, movOut, readTake, recordDevice, writeTake
device, server, undefine
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
cmds.defineDataServer( s='ultratrak_server', d='melvin' )
# Connects to the ultratrak_server running on the localhost and gives it
# the name "melvin"
cmds.defineDataServer( s='mocap_lab:5200', d='labFlock' )
# Creates a device called "labFlock" which connects to the server running
# on host "mocap_lab" at port "5200".
cmds.defineDataServer( undefine=True, d='labFlock' )
# Delete the device "labFlock" closing the connection with the server
# specified when it was created.