pymel.core.modeling.polyOutput

polyOutput(*args, **kwargs)

Dumps a description of internal memory representation of poly objects. If no objects are specified in the command line, then the objects from the active list are used. If information on the geometry in the history of a poly shape is desired, then the plug of interest needs to be specified in the command line. Default behaviour is to print only a summary. Use the flags above to get more details on a specific part of the object.

Flags:
Long name (short name) Argument Types Properties
allValues (a) bool ../../../_images/create.gif
 
Shortcut for setting all the flags above
color (c) bool ../../../_images/create.gif
 
Prints the color per vertex. In case of multiple sets, all sets are printed.
colorDesc (cd) bool ../../../_images/create.gif
 
Print the color per vertex description. Each integer is an entry in the color array.
edge (e) bool ../../../_images/create.gif
 
Print the edge description.
edgeFace (ef) bool ../../../_images/create.gif
 
Prints the edge to face adjascency list. Only available if the information is already computed on the object.
face (f) bool ../../../_images/create.gif
 
Print the faces description
faceNorm (fn) bool ../../../_images/create.gif
 
Prints the normals per face. Only available if the information is already computed on the object.
force (fo) bool ../../../_images/create.gif
 
Force evaluation of missing pieces before printing.
group (g) bool ../../../_images/create.gif
 
Print the groups of the object.
noOutput (no) bool ../../../_images/create.gif
 

Dont output any data. Would be useful if you want to just evaluate the data, for testing purposes.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

normDesc (nd) bool ../../../_images/create.gif
 
Prints the normals per vertex description. Each integer is an entry in the vertNorm array. Only available if the information is already computed on the object.
outputFile (of) unicode  
   
triangle (t) bool ../../../_images/create.gif
 
Prints the triangles per face. Only available if the information is already computed on the object.
uvDesc (uvd) bool ../../../_images/create.gif
 
Print the UV description. Each integer is an entry in the uvValue array.
uvValue (uv) bool ../../../_images/create.gif
 
Prints the UV positions. In case of multiple UV sets, all sets are printed.
vert (v) bool ../../../_images/create.gif
 
Prints the vertex positions.
vertEdge (ve) bool ../../../_images/create.gif
 
Prints the vertex to edge adjascency list. Only available if the information is already computed on the object.
vertNorm (vn) bool ../../../_images/create.gif
 
Prints the normals per vertex. Only available if the information is already computed on the object.

Derived from mel command maya.cmds.polyOutput

Example:

import pymel.core as pm

import maya.cmds as cmds

pm.polyPlane()
pm.polyOutput( a=True )

# If a polygon operation is performed such as Add Divisions:
pm.polySubdivideFacet('pPlane1', dv=1, m=0, ch=1)

# then the command can get information on geometry data feeding into the polySubdFace1 node.
pm.polyOutput( 'polySubdFace1.inputPolymesh' )

# The command can also get information on geometry data coming out of the
# polySubdFace1 node.
pm.polyOutput( 'polySubdFace1.output' )

Previous topic

pymel.core.modeling.polyOptions

Next topic

pymel.core.modeling.polyPipe

Core

Core Modules

Other Modules

This Page