移動先: 概要 戻り値 キーワード. フラグ. Python 例.
assignViewportFactories([materialFactory=string], [nodeType=string], [textureFactory=string])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
assignViewportFactories は 「元に戻す」が不可能、「照会」が可能、「編集」が可能 です。
ディスプレイ用のビューポート ファクトリをマテリアルまたはテクスチャとして設定します。なし
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
materialFactory(mf)
|
string
|
![]() ![]() ![]() |
||
|
||||
textureFactory(tf)
|
string
|
![]() ![]() ![]() |
||
|
||||
nodeType(nt)
|
string
|
![]() ![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # To set the viewport factories for all dgs_material nodes. # cmds.assignViewportFactories( materialFactory='MentalRayMaterial', textureFactory='MentalRayTexture', nodeType='dgs_material' )