The circle command creates a circle or partial circle (arc)
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
center (c) | float, float, float | ||
|
|||
centerX (cx) | float | ||
|
|||
centerY (cy) | float | ||
|
|||
centerZ (cz) | float | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
degree (d) | int | ||
|
|||
first (fp) | float, float, float | ||
|
|||
firstPointX (fpx) | float | ||
|
|||
firstPointY (fpy) | float | ||
|
|||
firstPointZ (fpz) | float | ||
|
|||
fixCenter (fc) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
normal (nr) | float, float, float | ||
|
|||
normalX (nrx) | float | ||
|
|||
normalY (nry) | float | ||
|
|||
normalZ (nrz) | float | ||
|
|||
object (o) | bool | ||
|
|||
radius (r) | float | ||
|
|||
sections (s) | int | ||
|
|||
sweep (sw) | float | ||
|
|||
tolerance (tol) | float | ||
|
|||
useTolerance (ut) | bool | ||
|
Derived from mel command maya.cmds.circle
Example:
import pymel.core as pm
import maya.cmds as cmds
# create full circle at origin on the x-y plane
pm.circle( nr=(0, 0, 1), c=(0, 0, 0) )
# Result: [nt.Transform(u'nurbsCircle1'), nt.MakeNurbCircle(u'makeNurbCircle1')] #
# create half circle at origin on the x-y plane with radius 2
pm.circle( nr=(0, 0, 1), c=(0, 0, 0), sw=180, r=2 )
# Result: [nt.Transform(u'nurbsCircle2'), nt.MakeNurbCircle(u'makeNurbCircle2')] #