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 |
|
|
Fix the center of the circle to the specified center point. Otherwise the circle will start at the specified first point. Default:true Advanced flags |
|||
| 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
# 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')] #