modelEditor [-activeComponentsXray boolean] [-activeOnly boolean] [-activeView] [-addObjects string] [-addSelected] [-allObjects boolean] [-backfaceCulling boolean] [-bufferMode string] [-bumpResolution uint uint] [-camera string] [-cameraName string] [-cameraSetup] [-cameras boolean] [-colorMap] [-colorResolution uint uint] [-control] [-controlVertices boolean] [-cullingOverride string] [-default] [-defineTemplate string] [-deformers boolean] [-dimensions boolean] [-displayAppearance string] [-displayLights string] [-displayTextures boolean] [-docTag string] [-dynamicConstraints boolean] [-dynamics boolean] [-editorChanged script] [-exists] [-filter string] [-filteredObjectList] [-fluids boolean] [-fogColor float float float float] [-fogDensity float] [-fogEnd float] [-fogMode string] [-fogSource string] [-fogStart float] [-fogging boolean] [-follicles boolean] [-forceMainConnection string] [-grid boolean] [-hairSystems boolean] [-handles boolean] [-headsUpDisplay boolean] [-highlightConnection string] [-hulls boolean] [-ignorePanZoom boolean] [-ikHandles boolean] [-imagePlane boolean] [-interactive] [-isFiltered] [-jointXray boolean] [-joints boolean] [-lights boolean] [-lineWidth float] [-locators boolean] [-lockMainConnection] [-lowQualityLighting boolean] [-mainListConnection string] [-manipulators boolean] [-maxConstantTransparency float] [-modelPanel string] [-nCloths boolean] [-nParticles boolean] [-nRigids boolean] [-noUndo boolean] [-nurbsCurves boolean] [-nurbsSurfaces boolean] [-objectFilter script] [-objectFilterList script] [-objectFilterListUI script] [-objectFilterShowInHUD boolean] [-objectFilterUI script] [-occlusionCulling boolean] [-panel string] [-parent string] [-pivots boolean] [-planes boolean] [-pluginObjects string boolean] [-polymeshes boolean] [-queryPluginObjects string] [-removeSelected] [-rendererDeviceName] [-rendererList] [-rendererListUI] [-rendererName string] [-rendererOverrideList] [-rendererOverrideListUI] [-rendererOverrideName string] [-selectionConnection string] [-selectionHiliteDisplay boolean] [-setSelected] [-shadows boolean] [-smoothWireframe boolean] [-sortTransparent boolean] [-stateString] [-strokes boolean] [-subdivSurfaces boolean] [-textureAnisotropic boolean] [-textureDisplay string] [-textureHilight boolean] [-textureMaxSize int] [-textureMemoryUsed] [-textureSampling int] [-textures boolean] [-transpInShadows boolean] [-transparencyAlgorithm string] [-twoSidedLighting boolean] [-unParent] [-unlockMainConnection] [-updateColorMode] [-updateMainConnection] [-useBaseRenderer boolean] [-useColorIndex boolean] [-useDefaultMaterial boolean] [-useInteractiveMode boolean] [-useRGBImagePlane boolean] [-useTemplate string] [-userNode string] [-viewObjects] [-viewSelected boolean] [-viewType] [-wireframeBackingStore boolean] [-wireframeOnShaded boolean] [-xray boolean]
[editorName]
modelEditor は、取り消し可能、照会可能、および編集可能です。
モデル エディタの作成、編集、照会が行われます。 このコマンドのフラグの一部で、通常モードとインタラクティブ/再生モードの設定が異なることに注意してください。たとえば、通常はシェーディング モードを使用しますが、処理速度を上げるために再生中はワイヤフレームを使用するように設定できます。一部のフラグでは既定設定をサポートし、新しいモデル エディタをその設定で作成できます。string | エディタの名前 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-exists(-ex)
|
|
|||
|
||||
-defineTemplate(-dt)
|
string
|
|||
|
||||
-useTemplate(-ut)
|
string
|
|||
|
||||
-panel(-pnl)
|
string
|
|||
|
||||
-parent(-p)
|
string
|
|||
|
||||
-unParent(-up)
|
|
|||
|
||||
-control(-ctl)
|
|
|||
|
||||
-mainListConnection(-mlc)
|
string
|
|||
|
||||
-forceMainConnection(-fmc)
|
string
|
|||
|
||||
-selectionConnection(-slc)
|
string
|
|||
|
||||
-highlightConnection(-hlc)
|
string
|
|||
|
||||
-filter(-f)
|
string
|
|||
|
||||
-lockMainConnection(-lck)
|
|
|||
|
||||
-stateString(-sts)
|
|
|||
|
||||
-unlockMainConnection(-ulk)
|
|
|||
|
||||
-updateMainConnection(-upd)
|
|
|||
|
||||
-docTag(-dtg)
|
string
|
|||
|
||||
-camera(-cam)
|
string
|
|||
|
||||
-cameraName(-cn)
|
string
|
|||
|
||||
-displayLights(-dl)
|
string
|
|||
|
||||
-bufferMode(-bm)
|
string
|
|||
|
||||
-activeOnly(-ao)
|
boolean
|
|||
|
||||
-interactive(-i)
|
|
|||
|
||||
-default(-d)
|
|
|||
|
||||
-ignorePanZoom(-ipz)
|
boolean
|
|||
|
||||
-twoSidedLighting(-tsl)
|
boolean
|
|||
|
||||
-displayAppearance(-da)
|
string
|
|||
|
||||
-wireframeOnShaded(-wos)
|
boolean
|
|||
|
||||
-headsUpDisplay(-hud)
|
boolean
|
|||
|
||||
-selectionHiliteDisplay(-sel)
|
boolean
|
|||
|
||||
-useDefaultMaterial(-udm)
|
boolean
|
|||
|
||||
-useColorIndex(-uci)
|
boolean
|
|||
|
||||
-userNode(-un)
|
string
|
|||
|
||||
-wireframeBackingStore(-wbs)
|
boolean
|
|||
|
||||
-useRGBImagePlane(-ip)
|
boolean
|
|||
|
||||
-imagePlane(-imp)
|
boolean
|
|||
|
||||
-updateColorMode(-ucm)
|
|
|||
|
||||
-colorMap(-cm)
|
|
|||
|
||||
-backfaceCulling(-bfc)
|
boolean
|
|||
|
||||
-xray(-xr)
|
boolean
|
|||
|
||||
-jointXray(-jx)
|
boolean
|
|||
|
||||
-activeComponentsXray(-acx)
|
boolean
|
|||
|
||||
-maxConstantTransparency(-mct)
|
float
|
|||
|
||||
-displayTextures(-dtx)
|
boolean
|
|||
|
||||
-smoothWireframe(-swf)
|
boolean
|
|||
|
||||
-lineWidth(-lw)
|
float
|
|||
|
||||
-textureMaxSize(-tms)
|
int
|
|||
|
||||
-textureMemoryUsed(-tmu)
|
|
|||
|
||||
-textureAnisotropic(-ta)
|
boolean
|
|||
|
||||
-textureSampling(-ts)
|
int
|
|||
|
||||
-textureDisplay(-td)
|
string
|
|||
|
||||
-textureHilight(-th)
|
boolean
|
|||
|
||||
-fogging(-fg)
|
boolean
|
|||
|
||||
-fogSource(-fsc)
|
string
|
|||
|
||||
-fogMode(-fmd)
|
string
|
|||
|
||||
-fogDensity(-fdn)
|
float
|
|||
|
||||
-fogEnd(-fen)
|
float
|
|||
|
||||
-fogStart(-fst)
|
float
|
|||
|
||||
-fogColor(-fcl)
|
float float float float
|
|||
|
||||
-shadows(-sdw)
|
boolean
|
|||
|
||||
-rendererName(-rnm)
|
string
|
|||
|
||||
-rendererDeviceName(-rdn)
|
|
|||
|
||||
-rendererList(-rls)
|
|
|||
|
||||
-rendererListUI(-rlu)
|
|
|||
|
||||
-rendererOverrideName(-rom)
|
string
|
|||
|
||||
-rendererOverrideList(-rol)
|
|
|||
|
||||
-rendererOverrideListUI(-rou)
|
|
|||
|
||||
-colorResolution(-crz)
|
uint uint
|
|||
|
||||
-bumpResolution(-brz)
|
uint uint
|
|||
|
||||
-transparencyAlgorithm(-tal)
|
string
|
|||
|
||||
-transpInShadows(-tis)
|
boolean
|
|||
|
||||
-cullingOverride(-cov)
|
string
|
|||
|
||||
-lowQualityLighting(-lql)
|
boolean
|
|||
|
||||
-occlusionCulling(-ocl)
|
boolean
|
|||
|
||||
-useBaseRenderer(-ubr)
|
boolean
|
|||
|
||||
-nurbsCurves(-nc)
|
boolean
|
|||
|
||||
-nurbsSurfaces(-ns)
|
boolean
|
|||
|
||||
-polymeshes(-pm)
|
boolean
|
|||
|
||||
-subdivSurfaces(-sds)
|
boolean
|
|||
|
||||
-planes(-pl)
|
boolean
|
|||
|
||||
-lights(-lt)
|
boolean
|
|||
|
||||
-cameras(-ca)
|
boolean
|
|||
|
||||
-controlVertices(-cv)
|
boolean
|
|||
|
||||
-grid(-gr)
|
boolean
|
|||
|
||||
-hulls(-hu)
|
boolean
|
|||
|
||||
-joints(-j)
|
boolean
|
|||
|
||||
-ikHandles(-ikh)
|
boolean
|
|||
|
||||
-deformers(-df)
|
boolean
|
|||
|
||||
-dynamics(-dy)
|
boolean
|
|||
|
||||
-fluids(-fl)
|
boolean
|
|||
|
||||
-hairSystems(-hs)
|
boolean
|
|||
|
||||
-follicles(-fo)
|
boolean
|
|||
|
||||
-nCloths(-ncl)
|
boolean
|
|||
|
||||
-nParticles(-npa)
|
boolean
|
|||
|
||||
-nRigids(-nr)
|
boolean
|
|||
|
||||
-dynamicConstraints(-dc)
|
boolean
|
|||
|
||||
-locators(-lc)
|
boolean
|
|||
|
||||
-manipulators(-m)
|
boolean
|
|||
|
||||
-dimensions(-dim)
|
boolean
|
|||
|
||||
-handles(-ha)
|
boolean
|
|||
|
||||
-pivots(-pv)
|
boolean
|
|||
|
||||
-textures(-tx)
|
boolean
|
|||
|
||||
-strokes(-str)
|
boolean
|
|||
|
||||
-pluginObjects(-po)
|
string boolean
|
|||
|
||||
-queryPluginObjects(-qpo)
|
string
|
|||
|
||||
-allObjects(-alo)
|
boolean
|
|||
|
||||
-useInteractiveMode(-ui)
|
boolean
|
|||
|
||||
-activeView(-av)
|
|
|||
|
||||
-sortTransparent(-st)
|
boolean
|
|||
|
||||
-viewSelected(-vs)
|
boolean
|
|||
|
||||
-setSelected(-ss)
|
|
|||
|
||||
-addSelected(-as)
|
|
|||
|
||||
-removeSelected(-rs)
|
|
|||
|
||||
-addObjects(-aob)
|
string
|
|||
|
||||
-viewObjects(-vo)
|
|
|||
|
||||
-noUndo(-nud)
|
boolean
|
|||
|
||||
-cameraSetup(-cs)
|
|
|||
|
||||
-editorChanged(-ec)
|
script
|
|||
|
||||
-objectFilter(-obf)
|
script
|
|||
|
||||
-objectFilterUI(-obu)
|
script
|
|||
|
||||
-objectFilterList(-ofl)
|
script
|
|||
|
||||
-objectFilterListUI(-ofu)
|
script
|
|||
|
||||
-objectFilterShowInHUD(-ofs)
|
boolean
|
|||
|
||||
-isFiltered(-if)
|
|
|||
|
||||
-filteredObjectList(-fol)
|
|
|||
|
||||
-modelPanel(-mp)
|
string
|
|||
|
||||
-viewType(-vt)
|
|
|||
|
フラグはコマンドの作成モードで表示できます | フラグはコマンドの編集モードで表示できます |
フラグはコマンドの照会モードで表示できます | コマンド内でフラグを複数回使用できます。 |
// Create a window with a model editor and some buttons that // change the editor's display of objects in the scene. // string $window = `window`; string $form = `formLayout`; string $editor = `modelEditor`; string $column = `columnLayout -adjustableColumn true`; // Create some buttons that will alter the display appearance of // objects in the model editor, eg. wireframe vs. shaded mode. // button -label "Wireframe" -command ("modelEditor -edit -displayAppearance wireframe " + $editor); button -label "Points" -command ("modelEditor -edit -displayAppearance points " + $editor); button -label "Bounding Box" -command ("modelEditor -edit -displayAppearance boundingBox " + $editor); button -label "Smooth Shaded" -command ("modelEditor -edit -displayAppearance smoothShaded " + $editor); button -label "Flat Shaded" -command ("modelEditor -edit -displayAppearance flatShaded " + $editor); // Set up the window layout attachments. // formLayout -edit -attachForm $column "top" 0 -attachForm $column "left" 0 -attachNone $column "bottom" -attachNone $column "right" -attachForm $editor "top" 0 -attachControl $editor "left" 0 $column -attachForm $editor "bottom" 0 -attachForm $editor "right" 0 $form; // Create a camera for the editor. This particular camera will // have a close up perspective view of the centre of the ground plane. // string $camera[] = `camera -centerOfInterest 2.450351 -position 1.535314 1.135712 1.535314 -rotation -27.612504 45 0 -worldUp -0.1290301 0.3488592 -0.1290301`; // Attach the camera to the model editor. // modelEditor -edit -camera $camera[0] $editor; // Put an object in the scene. // cone; showWindow $window; // The following two examples assume a custom model editor command // defined via the MPxModelEditorCommand API class, named 'myEditor'. // // Create a custom editor, and use it as the model editor of Maya's // default modelPanel4 (the perspective view). // myEditor -modelPanel modelPanel4; // Restore the default model editor. // modelEditor -modelPanel modelPanel4; // // The following example shows usage of the render override flags // with model panel 'modelPanel4' // modelEditor -q -rol modelPanel4; // Query for non-UI names for any render overrides modelEditor -q -rou modelPanel4; // Query for UI names for any render overrides modelEditor -q -rom modelPanel4; // Query for any active override modelEditor -e -rom "myOverride" modelPanel4; // Set active override to 'myOverride' if it exists modelEditor -e -rom "" modelPanel4; // Clear out the active override modelEditor -e -rnm "base_OpenGL_Renderer" modelPanel4; // Set the renderer used for a 3d modeling viewport modelEditor -q -rnm modelPanel4; // Query for the renderer used for a 3d modeling viewport modelEditor -q -rdn modelPanel4; // Query for device name for current renderer.