Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

polyAppendVertex([append=[[, float, float, float, ]]], [constructionHistory=boolean], [hole=boolean], [name=string], [point=[float, float, float]], [texture=int], [vertex=int])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

polyAppendVertex is undoable, queryable, and editable.

Appends a new face to the selected polygonal object. The direction of the normal is given by the vertex order: the face normal points towards the user when the vertices rotate counter clockwise. Note that holes must be described in the opposite direction.
Only works with one object selected.

Return value

stringThe node name.

In query mode, return type is based on queried flag.

Related

polyAppend, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polyExtrudeFacet, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polySubdivideFacet, polyTriangulate

Flags

append, constructionHistory, hole, name, point, texture, vertex
Long name (short name) Argument types Properties
append(a) [[, float, float, float, ]] createmultiuse
Append a vertex or a point to the selected object, or mark the start of a hole.
This flag may also be used in place of the "hole", "vertex" and "point" flags. If no argument is passed to the "append" flag, then it marks the beginning of a hole (use an empty tuple in Python '()'). If one argument is passed, then the argument is considered to be an index into the vertices of the selected object, as with the "vertex" flag. If three arguments are passed, then it is interpreted as the coordinates of a new point which will be inserted, as with the "point" flag.
vertex(v) int createmultiuse
Adds the given vertex of the selected object to the new face. Note that this flag should be avoided in Python. You may use the "append" flag instead and pass one argument.
point(p) [float, float, float] createmultiuse
Adds a new point to the new face. Coordinates of free points are given in the local object reference. Note that this flag should be avoided in Python. You may use the "append" flag instead and pass three arguments.
texture(tx) int createqueryedit
Specifies how new faces are mapped.
0 - None; 1 - Normalize; 2 - Unitize
C: Default is 0 (no mapping).
Q: When queried, this flag returns an int
hole(h) boolean createmultiuse
Add a hole. The following points and edges will define a hole. Note that this flag should be avoided in Python. You may use the "append" flag instead and pass an empty tuple '()' to specify the start of a hole.
Common flags
name(n) string create
Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created.
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.
Note: If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.polyPlane( sx=3, sy=3 )
# add a new face
cmds.polyAppendVertex( a=[6, 10, (.167, .3, -.167), (.167, .3, .167)] )
# add a new holed face
cmds.polyAppendVertex( a=[9, 5, (-.167, .3, .167), (-.167, .3, -.167), (), (-.167, .2, .1), (-.167, .1, 0), (-.167, .2, -.1)] )
# connect the two new faces
cmds.polyAppendVertex( a=[18, 17, 16, 19] )
# add a new unconnected quad
cmds.polyAppendVertex( a=[(-.5, .5, -.5), (.5, .5, -.5), (.5, .5, .5), (-.5, .5, .5)] )