pymel.core.context.polyAppendFacetCtx

static context.polyAppendFacetCtx(*args, **kwargs)

Create a new context to append facets on polygonal objects In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
append (ap) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Allows to switch to polyCreateFacetCtx tool
exists (ex) bool  
   
image1 (i1) unicode  
   
image2 (i2) unicode  
   
image3 (i3) unicode  
   
isRotateAvailable (isr) bool ../../../_images/query.gif
 

Tells if the control associated to rotate flag is available. If several edges are already selected and they are not aligned (thus there is no rotation axis) the rotation is no longer available.

maximumNumberOfPoints (mp) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Allows the ability to set a upper bound on the number of points in interactively place before polygon is created. A value less than 2 will mean that there is no upper bound. Flag can have multiple arguments, passed either as a tuple or a list.

planarConstraint (pc) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Allows/avoid new facet to be non-planar. If on, all new points will be projected onto current facet plane. Selected edges will be checked as well.
rotate (r) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Rotate current facet around the first edge selected.
subdivision (s) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Number of sub-edges created for each new edge. Default is 1.
texture (tx) int  
   

Derived from mel command maya.cmds.polyAppendFacetCtx

Example:

import pymel.core as pm

# Create a poly plane
pm.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1')

# Create a new poly append facet context, set it to add four vertices per new edge, and then switch to it
pm.polyAppendFacetCtx('polyAppendFacetCtx1', s=4)
pm.setToolTo('polyAppendFacetCtx1')

Previous topic

pymel.core.context.paramDimContext

Next topic

pymel.core.context.polyCreaseCtx

Core

Core Modules

Other Modules

This Page