pymel.core.uitypes.ModelEditor

Inheritance diagram of ModelEditor

class ModelEditor

class counterpart of mel function modelEditor

Create, edit or query a model editor. Note that some of the flags of this command may have different settings for normal mode and for interactive/playback mode. For example, a modelEditor can be set to use shaded mode normally, but to use wireframe during playback for greater speed. Some flags also support having defaults set so that new model editors will be created with those settings.

addObjects(val=True, **kwargs)

This flag causes the objects contained within the selection connection to be added to the list of objects visible in the view (if viewSelected is true).

Derived from mel command maya.cmds.modelEditor

addSelected(val=True, **kwargs)

This flag causes the currently active objects to be added to the list of objects visible in the view (if viewSelected is true).

Derived from mel command maya.cmds.modelEditor

cameraName(val=True, **kwargs)

Set the name of the panel’s camera transform and shape. The shape name is computed by appending the string “Shape” to the transform name. This flag may not be queried.

Derived from mel command maya.cmds.modelEditor

getActiveComponentsXray(**kwargs)

Turns on or off Xray mode for active components.

Derived from mel command maya.cmds.modelEditor

getActiveOnly(**kwargs)

Sets whether only active objects should appear shaded in shaded display.

Derived from mel command maya.cmds.modelEditor

getActiveView(**kwargs)

Sets this model editor to be the active view. Returns true if successful. On query this flag will return whether the view is the active view.

Derived from mel command maya.cmds.modelEditor

getAllObjects(**kwargs)

Turn on/off the display of all objects for the view of the model editor. This excludes NURBS, CVs, hulls, grids and manipulators.

Derived from mel command maya.cmds.modelEditor

getBackfaceCulling(**kwargs)

Turns on or off backface culling for the whole view. This setting overrides the culling settings of individual objects. All objects draw in the view will be backface culled. When backface culling is turned on, surfaces becomes invisible in areas where the normal is pointing away from the camera.

Derived from mel command maya.cmds.modelEditor

getBufferMode(**kwargs)

Sets the graphic buffer mode. Possible values are “single” or “double”.

Derived from mel command maya.cmds.modelEditor

getBumpResolution(**kwargs)

Set the resolution for “baked” bump map textures when using the hardware renderer. The default value is 512, 512 respectively.

Derived from mel command maya.cmds.modelEditor

getCamera(**kwargs)

Change or query the name of the camera in model editor.

Derived from mel command maya.cmds.modelEditor

getCameraSetup(**kwargs)

Based on the model editor name passed in will returns a string list containing camera setups. A camera setup can contain one or more cameras which are associated with each other. Camera setups are defined as pairs of consecutive strings in the list. Each pair is comprised of: a string which identifies an active camera, and a string which defines a script to set up a given active camera. As many pairs of strings can be returned as the number of active cameras. If nothing is returned then it is assumed that no set up is required to activate a given camera.

Derived from mel command maya.cmds.modelEditor

getCameras(**kwargs)

Turn on/off the display of cameras for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getColorMap(**kwargs)

Queries the color map style for the model panel. Possible values are “colorIndex” and “rgb”.

Derived from mel command maya.cmds.modelEditor

getColorResolution(**kwargs)

Set the resolution for “baked” color textures when using the hardware renderer. The default value is 256, 256 respectively.

Derived from mel command maya.cmds.modelEditor

getControl(**kwargs)

Query only. Returns the top level control for this editor. Usually used for getting a parent to attach popup menus. Caution: It is possible, at times, for an editor to exist without a control. This flag returns “NONE” if no control is present.

Derived from mel command maya.cmds.modelEditor

getControlVertices(**kwargs)

Turn on/off the display of NURBS CVs for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getCullingOverride(**kwargs)

Set whether to override the culling attributes on objects when using the hardware renderer. The options are: “none” : Use the culling object attributes per object.”doubleSided” : Force all objects to be double sided.”singleSided”: Force all objects to be single sided.The default value is “none”.

Derived from mel command maya.cmds.modelEditor

getDefault(**kwargs)

Causes this command to modify the default value of this setting. Newly created model editors will inherit the values. This flag may be used with the -interactive to set default interactive settings.

Derived from mel command maya.cmds.modelEditor

getDeformers(**kwargs)

Turn on/off the display of deformer objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getDimensions(**kwargs)

Turn on/off the display of dimension objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getDisplayAppearance(**kwargs)

Sets the display appearance of the model panel. Possible values are “wireframe”, “points”, “boundingBox”, “smoothShaded”, “flatShaded”. This flag may be used with the -interactive and -default flags. Note that only “wireframe”, “points”, and “boundingBox” are valid for the interactive mode.

Derived from mel command maya.cmds.modelEditor

getDisplayLights(**kwargs)

Sets the lighting for shaded mode. Possible values are “selected”, “active”, “all”, “default”, “none”.

Derived from mel command maya.cmds.modelEditor

getDisplayTextures(**kwargs)

Turns on or off display of textures in shaded mode

Derived from mel command maya.cmds.modelEditor

getDocTag(**kwargs)

Attaches a tag to the Maya editor.

Derived from mel command maya.cmds.modelEditor

getDynamicConstraints(**kwargs)

Turn on/off the display of dynamicConstraints for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getDynamics(**kwargs)

Turn on/off the display of dynamics objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getEditorChanged(**kwargs)

An optional script callback which is called when the editors options have changed. This is useful in a situation where a scripted panel contains a modelEditor and wants to be notified when the contained editor changes its options.

Derived from mel command maya.cmds.modelEditor

getFilter(**kwargs)

Specifies the name of an itemFilter object to be placed on this editor. This filters the information coming onto the main list of the editor.

Derived from mel command maya.cmds.modelEditor

getFilteredObjectList(**kwargs)

For model editors with filtering on (either using an object filter, or isolate select), this flag returns a string list of the objects which are displayed in this editor. Note that this list does not take into account visibility (based on camera frustum or flags), it purely captures the objects which are considered when rendering the view.

Derived from mel command maya.cmds.modelEditor

getFluids(**kwargs)

Turn on/off the display of fluids for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getFogColor(**kwargs)

The color used for hardware fogging.

Derived from mel command maya.cmds.modelEditor

getFogDensity(**kwargs)

Determines the density of hardware fogging.

Derived from mel command maya.cmds.modelEditor

getFogEnd(**kwargs)

The end location of hardware fogging.

Derived from mel command maya.cmds.modelEditor

getFogMode(**kwargs)

This determines the drop-off mode for fog. The possibilities are: “linear” : linear drop-off”exponent” : exponential drop-off”exponent2” : squared exponential drop-off

Derived from mel command maya.cmds.modelEditor

getFogSource(**kwargs)

Set the type of fog algorithm to use. If the argument is “fragment” (default) then fog is computed per pixel. If the argument is “coordinate” then if the geometry has specified vertex fog coordinates, and the OpenGL extension for vertex fog is supported by the graphics system, then fog is computed per vertex.

Derived from mel command maya.cmds.modelEditor

getFogStart(**kwargs)

The start location of hardware fogging.

Derived from mel command maya.cmds.modelEditor

getFogging(**kwargs)

Set whether hardware fogging is enabled or not.

Derived from mel command maya.cmds.modelEditor

getFollicles(**kwargs)

Turn on/off the display of follicles for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getForceMainConnection(**kwargs)

Specifies the name of a selectionConnection object which the editor will use as its source of content. The editor will only display items contained in the selectionConnection object. This is a variant of the -mainListConnection flag in that it will force a change even when the connection is locked. This flag is used to reduce the overhead when using the -unlockMainConnection , -mainListConnection, -lockMainConnection flags in immediate succession.

Derived from mel command maya.cmds.modelEditor

getGrid(**kwargs)

Turn on/off the display of the grid for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getHairSystems(**kwargs)

Turn on/off the display of hairSystems for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getHandles(**kwargs)

Turn on/off the display of select handles for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getHeadsUpDisplay(**kwargs)

Sets whether the model panel will draw any enabled heads up display elements in this window (if true). Currently this requires the HUD elements to be globally enabled.

Derived from mel command maya.cmds.modelEditor

getHighlightConnection(**kwargs)

Specifies the name of a selectionConnection object which the editor will synchronize with its highlight list. Not all editors have a highlight list. For those that do, it is a secondary selection list.

Derived from mel command maya.cmds.modelEditor

getHulls(**kwargs)

Turn on/off the display of NURBS hulls for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getIgnorePanZoom(**kwargs)

Sets whether the model panel will ignore the 2D pan/zoom value to give an overview of the scene.

Derived from mel command maya.cmds.modelEditor

getIkHandles(**kwargs)

Turn on/off the display of ik handles and end effectors for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getImagePlane(**kwargs)

Turn on/off the display of image plane for the view

Derived from mel command maya.cmds.modelEditor

getInteractive(**kwargs)

Causes this command to modify the interactive refresh settings of the view. In this way it is possible to change the behavior of the model editor during playback for improved performance.

Derived from mel command maya.cmds.modelEditor

getIsFiltered(**kwargs)

Returns true for model editors with filtering applied to their view of the scene. This could either be an explicit object filter, or a display option such as isolate select which filters the objects that are displayed.

Derived from mel command maya.cmds.modelEditor

getJointXray(**kwargs)

Turns on or off Xray mode for joints.

Derived from mel command maya.cmds.modelEditor

getJoints(**kwargs)

Turn on/off the display of joints for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getLights(**kwargs)

Turn on/off the display of lights for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getLineWidth(**kwargs)

Set width of lines for display

Derived from mel command maya.cmds.modelEditor

getLocators(**kwargs)

Turn on/off the display of locator objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getLowQualityLighting(**kwargs)

Set whether to use “low quality lighting” when using the hardware renderer. The default value is false.

Derived from mel command maya.cmds.modelEditor

getMainListConnection(**kwargs)

Specifies the name of a selectionConnection object which the editor will use as its source of content. The editor will only display items contained in the selectionConnection object.

Derived from mel command maya.cmds.modelEditor

getManipulators(**kwargs)

Turn on/off the display of manipulator objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getMaxConstantTransparency(**kwargs)

Sets the maximum constant transparency. Setting this value remaps constant transparency values from the range [0.0, 1.0] to the range [0.0, maxConstantTransparency]. All transparency values are shifted linearly to the new range, so a fully transparency object (transparency 1.0) would appear with a transparency of maxConstantTransparency in the viewport, allowing highly transparent objects to be made visible. This flag only affects constant (non-textured) transparent objects.

Derived from mel command maya.cmds.modelEditor

getNCloths(**kwargs)

Turn on/off the display of nCloths for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getNParticles(**kwargs)

Turn on/off the display of nParticles for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getNRigids(**kwargs)

Turn on/off the display of nRigids for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getNurbsCurves(**kwargs)

Turn on/off the display of nurbs curves for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getNurbsSurfaces(**kwargs)

Turn on/off the display of nurbs surfaces for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getObjectFilter(**kwargs)

Set or query the current object filter name. An object filter is required to have already been registered.

Derived from mel command maya.cmds.modelEditor

getObjectFilterList(**kwargs)

Return a list of names of registered filters.

Derived from mel command maya.cmds.modelEditor

getObjectFilterListUI(**kwargs)

Return a list of UI names of registered filters.

Derived from mel command maya.cmds.modelEditor

getObjectFilterShowInHUD(**kwargs)

Sets whether or not to display the object filter UI name in the heads up display when an object filter is active. This string is concatenated with the camera name.

Derived from mel command maya.cmds.modelEditor

getObjectFilterUI(**kwargs)

Query the current object filter UI name. The object filter is required to have already been registered.

Derived from mel command maya.cmds.modelEditor

getOcclusionCulling(**kwargs)

Set whether to enable occlusion culling testing when using the hardware renderer. The default value is false.

Derived from mel command maya.cmds.modelEditor

getPanel(**kwargs)

Specifies the panel that the editor belongs to. By default if an editor is created in the create callback of a scripted panel it will belong to that panel. If an editor doesn’t belong to a panel it will be deleted when the window that it is in is deleted.

Derived from mel command maya.cmds.modelEditor

getPivots(**kwargs)

Turn on/off the display of transform pivots for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getPlanes(**kwargs)

Turn on/off the display of sketch planes for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getPolymeshes(**kwargs)

Turn on/off the display of polygon meshes for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getRendererList(**kwargs)

Query for a list of the internal names for renderers are available for usage with the 3d modeling viewport. The default list contains at least “base_OpenGL_Renderer”, and “hwRender_OpenGL_Renderer”, if supported. See rendererName for more details on these renderers. Any plugin viewport renderers will also appear in this list.

Derived from mel command maya.cmds.modelEditor

getRendererListUI(**kwargs)

Query for a list of the UI names renderers are available for usage with the 3d modeling viewport. The default list contains at the UI name for”base_OpenGL_Renderer”, and possibly the UI name for “hwRender_OpenGL_Renderer” if it is support. Any plugin viewport renderer’s UI names will also appear in this list. This list and the list returned from rendererList have a 1:1 correpsondance.

Derived from mel command maya.cmds.modelEditor

getRendererName(**kwargs)

Set or get the renderer used for the 3d modeling viewport. The default options for setting are: “base_OpenGL_Renderer” : The default OpenGL based renderer. “hwRender_OpenGL_Renderer” : The high quality hardware renderer. The default is “base_OpenGL_Renderer”. The high quality renderer is only supported on certain hardware configurations. See the hardware qualification charts for more details.

Derived from mel command maya.cmds.modelEditor

getSelectionConnection(**kwargs)

Specifies the name of a selectionConnection object which the editor will synchronize with its own selection list. As the user selects things in this editor, they will be selected in the selectionConnection object. If the object undergoes changes, the editor updates to show the change.

Derived from mel command maya.cmds.modelEditor

getSelectionHiliteDisplay(**kwargs)

Sets whether the model panel will draw any selection hiliting on the objects in this window.

Derived from mel command maya.cmds.modelEditor

getShadows(**kwargs)

Turn on/off the display of hardware shadows in shaded mode.

Derived from mel command maya.cmds.modelEditor

getSmoothWireframe(**kwargs)

Turns on or off smoothing of wireframe lines and points

Derived from mel command maya.cmds.modelEditor

getSortTransparent(**kwargs)

This flag turns on/off sorting of transparent objects during shaded mode refresh. Normally, objects are sorted according to their origin in camera space but when this flag is turned off they will be drawn according to their (depth-first traversal) order in the scene graph. This is a global flag that affects all model editors.

Derived from mel command maya.cmds.modelEditor

getStateString(**kwargs)

Query only flag. Returns the MEL command that will edit an editor to match the current editor state. The returned command string uses the string variable $editorName in place of a specific name.

Derived from mel command maya.cmds.modelEditor

getStrokes(**kwargs)

Turn on/off the display of Paint Effects strokes for the view

Derived from mel command maya.cmds.modelEditor

getSubdivSurfaces(**kwargs)

Turn on/off the display of subdivision surfaces for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

getTextureAnisotropic(**kwargs)

Set whether to perform anisotropic texture filtering. Will work only if the anisotropic texture filtering extension is supported in OpenGL on the graphics system.

Derived from mel command maya.cmds.modelEditor

getTextureDisplay(**kwargs)

Set the type of blending to use for textures. The blend is performed between the destination fragment and the texture fragment. The source is usually the material color. Argument options are: “modulate” : multiply the destination and texture fragment “decal” : overwrite the destination with the texture fragment

Derived from mel command maya.cmds.modelEditor

getTextureHilight(**kwargs)

Set whether to show specular hilighting when the display is in shaded textured mode.

Derived from mel command maya.cmds.modelEditor

getTextureMaxSize(**kwargs)

Set maximum texture size for hardware texturing. The integer value must be a power of 2. Recommended values are 128 or 256. If the value specified is larger than the OpenGL maximim textures size for the graphics hardware it will be clamped to the OpenGL size. If many large textures are used in a scene reducing this value improves performance. On Impact texture memory is pinned in RAM so using large textures can cause reliability and performance problems. Again reducing this value will help. Software rendering does not use this value. This flag is obsolete as of Maya 6.5. The maxTextureResolution/mtr argument on the displayPref command should be used instead.

Derived from mel command maya.cmds.modelEditor

getTextureMemoryUsed(**kwargs)

Returns the total number of bytes used by all texture maps. This is typicly width*height*channels for all texture objects in the scene If the texture is mip mapped all mip map levels are included in the total though not never more than two level will be in use at one time

Derived from mel command maya.cmds.modelEditor

getTextureSampling(**kwargs)

Set the type of sampling to be used for texture display. The argument can be either: 1 : means to perform point sample2 : means to perform bilinear interpolation (default)

Derived from mel command maya.cmds.modelEditor

getTextures(**kwargs)

Turn on/off the display of texture objects for the view

Derived from mel command maya.cmds.modelEditor

getTranspInShadows(**kwargs)

Set whether to enable display of transparency in shadows when using the hardware renderer. The default value is false.

Derived from mel command maya.cmds.modelEditor

getTransparencyAlgorithm(**kwargs)

Set the transparency algorithm. The options are: 1) “frontAndBackCull” : Two pass front and back culling technique.2) “perPolygonSort” : Draw transparent polygons in back-to-front order technique.transparency pptions 1) and 2) are supported by the hardware renderer. Options 1) is supported by the interactive modeling viewports. The default value is “frontAndBackCull”.

Derived from mel command maya.cmds.modelEditor

getTwoSidedLighting(**kwargs)

Turns on or off two sided lighting. This may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

getUseBaseRenderer(**kwargs)

Set whether to use the “base” renderer when using the hardware renderer and in “interactive display mode” (-useInteractiveMode) The default value is false.

Derived from mel command maya.cmds.modelEditor

getUseColorIndex(**kwargs)

Sets whether the model panel will attempt to use color index mode when possible. Color index mode can provide a performance increase for point, bounding box, and wireframe display modes. This may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

getUseDefaultMaterial(**kwargs)

Sets whether the model panel will draw all the shaded surfaces using the default material as opposed to using the material(s) currently assigned to the surfaces.

Derived from mel command maya.cmds.modelEditor

getUseInteractiveMode(**kwargs)

Turns on or off the use of the special interaction settings during playback. This flag may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

getUseRGBImagePlane(**kwargs)

Sets whether the model panel will be forced into RGB mode when there is an image plane attached to the panel’s camera.

Derived from mel command maya.cmds.modelEditor

getUserNode(**kwargs)

Allows the user to associate a node name with the modelEditor. The value is automatically updated in the event the node is deleted or renamed.

Derived from mel command maya.cmds.modelEditor

getViewObjects(**kwargs)

Returns the name (if any) of the objectSet which contains the list of objects visible in the view if viewSelected is true and the list of objects being displayed does notcome from the active list.

Derived from mel command maya.cmds.modelEditor

getViewSelected(**kwargs)

This flag turns on/off viewing of selected objects. When the flag is set to true, the currently active objects are captured and used as the list of objects to view.

Derived from mel command maya.cmds.modelEditor

getViewType(**kwargs)

Returns a string indicating the type of the model editor. For the default model editor, returns the empty string. For custom model editor types created via the API, returns the same string as is returned via the method MPx3dModelView::viewType().Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.modelEditor

getWireframeBackingStore(**kwargs)

Sets whether a backing store is used to optimization the drawing of active objects. This mode can provide a performance increase in wireframe mode for certain scenes.

Derived from mel command maya.cmds.modelEditor

getWireframeOnShaded(**kwargs)

Sets whether the model panel will draw the wireframe on all shaded objects (if true) or only for active objects (if false).

Derived from mel command maya.cmds.modelEditor

getXray(**kwargs)

Turns on or off Xray mode. This may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

lockMainConnection(val=True, **kwargs)

Locks the current list of objects within the mainConnection, so that only those objects are displayed within the editor. Further changes to the original mainConnection are ignored.

Derived from mel command maya.cmds.modelEditor

noUndo(val=True, **kwargs)

This flag prevents some viewport operations (such as isolate select) from being added to the undo queue.

Derived from mel command maya.cmds.modelEditor

removeSelected(val=True, **kwargs)

This flag causes the currently active objects to be removed from the list of objects visible in the view (if viewSelected is true).

Derived from mel command maya.cmds.modelEditor

setActiveComponentsXray(val=True, **kwargs)

Turns on or off Xray mode for active components.

Derived from mel command maya.cmds.modelEditor

setActiveOnly(val=True, **kwargs)

Sets whether only active objects should appear shaded in shaded display.

Derived from mel command maya.cmds.modelEditor

setActiveView(val=True, **kwargs)

Sets this model editor to be the active view. Returns true if successful. On query this flag will return whether the view is the active view.

Derived from mel command maya.cmds.modelEditor

setAllObjects(val=True, **kwargs)

Turn on/off the display of all objects for the view of the model editor. This excludes NURBS, CVs, hulls, grids and manipulators.

Derived from mel command maya.cmds.modelEditor

setBackfaceCulling(val=True, **kwargs)

Turns on or off backface culling for the whole view. This setting overrides the culling settings of individual objects. All objects draw in the view will be backface culled. When backface culling is turned on, surfaces becomes invisible in areas where the normal is pointing away from the camera.

Derived from mel command maya.cmds.modelEditor

setBufferMode(val=True, **kwargs)

Sets the graphic buffer mode. Possible values are “single” or “double”.

Derived from mel command maya.cmds.modelEditor

setBumpResolution(val=True, **kwargs)

Set the resolution for “baked” bump map textures when using the hardware renderer. The default value is 512, 512 respectively.

Derived from mel command maya.cmds.modelEditor

setCamera(val=True, **kwargs)

Change or query the name of the camera in model editor.

Derived from mel command maya.cmds.modelEditor

setCameras(val=True, **kwargs)

Turn on/off the display of cameras for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setColorResolution(val=True, **kwargs)

Set the resolution for “baked” color textures when using the hardware renderer. The default value is 256, 256 respectively.

Derived from mel command maya.cmds.modelEditor

setControlVertices(val=True, **kwargs)

Turn on/off the display of NURBS CVs for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setCullingOverride(val=True, **kwargs)

Set whether to override the culling attributes on objects when using the hardware renderer. The options are: “none” : Use the culling object attributes per object.”doubleSided” : Force all objects to be double sided.”singleSided”: Force all objects to be single sided.The default value is “none”.

Derived from mel command maya.cmds.modelEditor

setDefault(val=True, **kwargs)

Causes this command to modify the default value of this setting. Newly created model editors will inherit the values. This flag may be used with the -interactive to set default interactive settings.

Derived from mel command maya.cmds.modelEditor

setDeformers(val=True, **kwargs)

Turn on/off the display of deformer objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setDimensions(val=True, **kwargs)

Turn on/off the display of dimension objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setDisplayAppearance(val=True, **kwargs)

Sets the display appearance of the model panel. Possible values are “wireframe”, “points”, “boundingBox”, “smoothShaded”, “flatShaded”. This flag may be used with the -interactive and -default flags. Note that only “wireframe”, “points”, and “boundingBox” are valid for the interactive mode.

Derived from mel command maya.cmds.modelEditor

setDisplayLights(val=True, **kwargs)

Sets the lighting for shaded mode. Possible values are “selected”, “active”, “all”, “default”, “none”.

Derived from mel command maya.cmds.modelEditor

setDisplayTextures(val=True, **kwargs)

Turns on or off display of textures in shaded mode

Derived from mel command maya.cmds.modelEditor

setDocTag(val=True, **kwargs)

Attaches a tag to the Maya editor.

Derived from mel command maya.cmds.modelEditor

setDynamicConstraints(val=True, **kwargs)

Turn on/off the display of dynamicConstraints for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setDynamics(val=True, **kwargs)

Turn on/off the display of dynamics objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setEditorChanged(val=True, **kwargs)

An optional script callback which is called when the editors options have changed. This is useful in a situation where a scripted panel contains a modelEditor and wants to be notified when the contained editor changes its options.

Derived from mel command maya.cmds.modelEditor

setFilter(val=True, **kwargs)

Specifies the name of an itemFilter object to be placed on this editor. This filters the information coming onto the main list of the editor.

Derived from mel command maya.cmds.modelEditor

setFluids(val=True, **kwargs)

Turn on/off the display of fluids for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setFogColor(val=True, **kwargs)

The color used for hardware fogging.

Derived from mel command maya.cmds.modelEditor

setFogDensity(val=True, **kwargs)

Determines the density of hardware fogging.

Derived from mel command maya.cmds.modelEditor

setFogEnd(val=True, **kwargs)

The end location of hardware fogging.

Derived from mel command maya.cmds.modelEditor

setFogMode(val=True, **kwargs)

This determines the drop-off mode for fog. The possibilities are: “linear” : linear drop-off”exponent” : exponential drop-off”exponent2” : squared exponential drop-off

Derived from mel command maya.cmds.modelEditor

setFogSource(val=True, **kwargs)

Set the type of fog algorithm to use. If the argument is “fragment” (default) then fog is computed per pixel. If the argument is “coordinate” then if the geometry has specified vertex fog coordinates, and the OpenGL extension for vertex fog is supported by the graphics system, then fog is computed per vertex.

Derived from mel command maya.cmds.modelEditor

setFogStart(val=True, **kwargs)

The start location of hardware fogging.

Derived from mel command maya.cmds.modelEditor

setFogging(val=True, **kwargs)

Set whether hardware fogging is enabled or not.

Derived from mel command maya.cmds.modelEditor

setFollicles(val=True, **kwargs)

Turn on/off the display of follicles for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setForceMainConnection(val=True, **kwargs)

Specifies the name of a selectionConnection object which the editor will use as its source of content. The editor will only display items contained in the selectionConnection object. This is a variant of the -mainListConnection flag in that it will force a change even when the connection is locked. This flag is used to reduce the overhead when using the -unlockMainConnection , -mainListConnection, -lockMainConnection flags in immediate succession.

Derived from mel command maya.cmds.modelEditor

setGrid(val=True, **kwargs)

Turn on/off the display of the grid for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setHairSystems(val=True, **kwargs)

Turn on/off the display of hairSystems for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setHandles(val=True, **kwargs)

Turn on/off the display of select handles for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setHeadsUpDisplay(val=True, **kwargs)

Sets whether the model panel will draw any enabled heads up display elements in this window (if true). Currently this requires the HUD elements to be globally enabled.

Derived from mel command maya.cmds.modelEditor

setHighlightConnection(val=True, **kwargs)

Specifies the name of a selectionConnection object which the editor will synchronize with its highlight list. Not all editors have a highlight list. For those that do, it is a secondary selection list.

Derived from mel command maya.cmds.modelEditor

setHulls(val=True, **kwargs)

Turn on/off the display of NURBS hulls for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setIgnorePanZoom(val=True, **kwargs)

Sets whether the model panel will ignore the 2D pan/zoom value to give an overview of the scene.

Derived from mel command maya.cmds.modelEditor

setIkHandles(val=True, **kwargs)

Turn on/off the display of ik handles and end effectors for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setImagePlane(val=True, **kwargs)

Turn on/off the display of image plane for the view

Derived from mel command maya.cmds.modelEditor

setInteractive(val=True, **kwargs)

Causes this command to modify the interactive refresh settings of the view. In this way it is possible to change the behavior of the model editor during playback for improved performance.

Derived from mel command maya.cmds.modelEditor

setJointXray(val=True, **kwargs)

Turns on or off Xray mode for joints.

Derived from mel command maya.cmds.modelEditor

setJoints(val=True, **kwargs)

Turn on/off the display of joints for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setLights(val=True, **kwargs)

Turn on/off the display of lights for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setLineWidth(val=True, **kwargs)

Set width of lines for display

Derived from mel command maya.cmds.modelEditor

setLocators(val=True, **kwargs)

Turn on/off the display of locator objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setLowQualityLighting(val=True, **kwargs)

Set whether to use “low quality lighting” when using the hardware renderer. The default value is false.

Derived from mel command maya.cmds.modelEditor

setMainListConnection(val=True, **kwargs)

Specifies the name of a selectionConnection object which the editor will use as its source of content. The editor will only display items contained in the selectionConnection object.

Derived from mel command maya.cmds.modelEditor

setManipulators(val=True, **kwargs)

Turn on/off the display of manipulator objects for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setMaxConstantTransparency(val=True, **kwargs)

Sets the maximum constant transparency. Setting this value remaps constant transparency values from the range [0.0, 1.0] to the range [0.0, maxConstantTransparency]. All transparency values are shifted linearly to the new range, so a fully transparency object (transparency 1.0) would appear with a transparency of maxConstantTransparency in the viewport, allowing highly transparent objects to be made visible. This flag only affects constant (non-textured) transparent objects.

Derived from mel command maya.cmds.modelEditor

setNCloths(val=True, **kwargs)

Turn on/off the display of nCloths for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setNParticles(val=True, **kwargs)

Turn on/off the display of nParticles for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setNRigids(val=True, **kwargs)

Turn on/off the display of nRigids for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setNurbsCurves(val=True, **kwargs)

Turn on/off the display of nurbs curves for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setNurbsSurfaces(val=True, **kwargs)

Turn on/off the display of nurbs surfaces for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setObjectFilter(val=True, **kwargs)

Set or query the current object filter name. An object filter is required to have already been registered.

Derived from mel command maya.cmds.modelEditor

setObjectFilterShowInHUD(val=True, **kwargs)

Sets whether or not to display the object filter UI name in the heads up display when an object filter is active. This string is concatenated with the camera name.

Derived from mel command maya.cmds.modelEditor

setOcclusionCulling(val=True, **kwargs)

Set whether to enable occlusion culling testing when using the hardware renderer. The default value is false.

Derived from mel command maya.cmds.modelEditor

setParent(val=True, **kwargs)

Specifies the parent layout for this editor. This flag will only have an effect if the editor is currently un-parented.

Derived from mel command maya.cmds.modelEditor

setPivots(val=True, **kwargs)

Turn on/off the display of transform pivots for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setPlanes(val=True, **kwargs)

Turn on/off the display of sketch planes for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setPolymeshes(val=True, **kwargs)

Turn on/off the display of polygon meshes for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setRendererName(val=True, **kwargs)

Set or get the renderer used for the 3d modeling viewport. The default options for setting are: “base_OpenGL_Renderer” : The default OpenGL based renderer. “hwRender_OpenGL_Renderer” : The high quality hardware renderer. The default is “base_OpenGL_Renderer”. The high quality renderer is only supported on certain hardware configurations. See the hardware qualification charts for more details.

Derived from mel command maya.cmds.modelEditor

setSelected(val=True, **kwargs)

This flag causes the currently active objects to be the only objects visible in the view (if viewSelected is true).

Derived from mel command maya.cmds.modelEditor

setSelectionConnection(val=True, **kwargs)

Specifies the name of a selectionConnection object which the editor will synchronize with its own selection list. As the user selects things in this editor, they will be selected in the selectionConnection object. If the object undergoes changes, the editor updates to show the change.

Derived from mel command maya.cmds.modelEditor

setSelectionHiliteDisplay(val=True, **kwargs)

Sets whether the model panel will draw any selection hiliting on the objects in this window.

Derived from mel command maya.cmds.modelEditor

setShadows(val=True, **kwargs)

Turn on/off the display of hardware shadows in shaded mode.

Derived from mel command maya.cmds.modelEditor

setSmoothWireframe(val=True, **kwargs)

Turns on or off smoothing of wireframe lines and points

Derived from mel command maya.cmds.modelEditor

setSortTransparent(val=True, **kwargs)

This flag turns on/off sorting of transparent objects during shaded mode refresh. Normally, objects are sorted according to their origin in camera space but when this flag is turned off they will be drawn according to their (depth-first traversal) order in the scene graph. This is a global flag that affects all model editors.

Derived from mel command maya.cmds.modelEditor

setStrokes(val=True, **kwargs)

Turn on/off the display of Paint Effects strokes for the view

Derived from mel command maya.cmds.modelEditor

setSubdivSurfaces(val=True, **kwargs)

Turn on/off the display of subdivision surfaces for the view of the model editor.

Derived from mel command maya.cmds.modelEditor

setTextureAnisotropic(val=True, **kwargs)

Set whether to perform anisotropic texture filtering. Will work only if the anisotropic texture filtering extension is supported in OpenGL on the graphics system.

Derived from mel command maya.cmds.modelEditor

setTextureDisplay(val=True, **kwargs)

Set the type of blending to use for textures. The blend is performed between the destination fragment and the texture fragment. The source is usually the material color. Argument options are: “modulate” : multiply the destination and texture fragment “decal” : overwrite the destination with the texture fragment

Derived from mel command maya.cmds.modelEditor

setTextureHilight(val=True, **kwargs)

Set whether to show specular hilighting when the display is in shaded textured mode.

Derived from mel command maya.cmds.modelEditor

setTextureMaxSize(val=True, **kwargs)

Set maximum texture size for hardware texturing. The integer value must be a power of 2. Recommended values are 128 or 256. If the value specified is larger than the OpenGL maximim textures size for the graphics hardware it will be clamped to the OpenGL size. If many large textures are used in a scene reducing this value improves performance. On Impact texture memory is pinned in RAM so using large textures can cause reliability and performance problems. Again reducing this value will help. Software rendering does not use this value. This flag is obsolete as of Maya 6.5. The maxTextureResolution/mtr argument on the displayPref command should be used instead.

Derived from mel command maya.cmds.modelEditor

setTextureSampling(val=True, **kwargs)

Set the type of sampling to be used for texture display. The argument can be either: 1 : means to perform point sample2 : means to perform bilinear interpolation (default)

Derived from mel command maya.cmds.modelEditor

setTextures(val=True, **kwargs)

Turn on/off the display of texture objects for the view

Derived from mel command maya.cmds.modelEditor

setTranspInShadows(val=True, **kwargs)

Set whether to enable display of transparency in shadows when using the hardware renderer. The default value is false.

Derived from mel command maya.cmds.modelEditor

setTransparencyAlgorithm(val=True, **kwargs)

Set the transparency algorithm. The options are: 1) “frontAndBackCull” : Two pass front and back culling technique.2) “perPolygonSort” : Draw transparent polygons in back-to-front order technique.transparency pptions 1) and 2) are supported by the hardware renderer. Options 1) is supported by the interactive modeling viewports. The default value is “frontAndBackCull”.

Derived from mel command maya.cmds.modelEditor

setTwoSidedLighting(val=True, **kwargs)

Turns on or off two sided lighting. This may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

setUseBaseRenderer(val=True, **kwargs)

Set whether to use the “base” renderer when using the hardware renderer and in “interactive display mode” (-useInteractiveMode) The default value is false.

Derived from mel command maya.cmds.modelEditor

setUseColorIndex(val=True, **kwargs)

Sets whether the model panel will attempt to use color index mode when possible. Color index mode can provide a performance increase for point, bounding box, and wireframe display modes. This may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

setUseDefaultMaterial(val=True, **kwargs)

Sets whether the model panel will draw all the shaded surfaces using the default material as opposed to using the material(s) currently assigned to the surfaces.

Derived from mel command maya.cmds.modelEditor

setUseInteractiveMode(val=True, **kwargs)

Turns on or off the use of the special interaction settings during playback. This flag may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

setUseRGBImagePlane(val=True, **kwargs)

Sets whether the model panel will be forced into RGB mode when there is an image plane attached to the panel’s camera.

Derived from mel command maya.cmds.modelEditor

setUserNode(val=True, **kwargs)

Allows the user to associate a node name with the modelEditor. The value is automatically updated in the event the node is deleted or renamed.

Derived from mel command maya.cmds.modelEditor

setViewSelected(val=True, **kwargs)

This flag turns on/off viewing of selected objects. When the flag is set to true, the currently active objects are captured and used as the list of objects to view.

Derived from mel command maya.cmds.modelEditor

setWireframeBackingStore(val=True, **kwargs)

Sets whether a backing store is used to optimization the drawing of active objects. This mode can provide a performance increase in wireframe mode for certain scenes.

Derived from mel command maya.cmds.modelEditor

setWireframeOnShaded(val=True, **kwargs)

Sets whether the model panel will draw the wireframe on all shaded objects (if true) or only for active objects (if false).

Derived from mel command maya.cmds.modelEditor

setXray(val=True, **kwargs)

Turns on or off Xray mode. This may be used with the -default flag.

Derived from mel command maya.cmds.modelEditor

unParent(val=True, **kwargs)

Specifies that the editor should be removed from its layout. This cannot be used with query.

Derived from mel command maya.cmds.modelEditor

unlockMainConnection(val=True, **kwargs)

Unlocks the mainConnection, effectively restoring the original mainConnection (if it is still available), and dynamic updates.

Derived from mel command maya.cmds.modelEditor

updateColorMode(val=True, **kwargs)

Using this flag tells the model panel to check which color mode it should be in, and to switch accordingly. This flag may be used to update a model panel after a camera image plane has been added or removed.

Derived from mel command maya.cmds.modelEditor

updateMainConnection(val=True, **kwargs)

Causes a locked mainConnection to be updated from the orginal mainConnection, but preserves the lock state.

Derived from mel command maya.cmds.modelEditor

Previous topic

pymel.core.uitypes.MessageLine

Next topic

pymel.core.uitypes.ModelPanel

Core

Core Modules

Other Modules

This Page