The offset command creates new offset surfaces from the selected surfaces. The default method is a surface offset, which offsets relative to the surface itself. The CV offset method offsets the CVs directly rather than the surface, so is usually slightly less accurate but is faster. The offset surface will always have the same degree, number of CVs and knot spacing as the original surface.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
distance (d) | float | ||
|
|||
method (m) | int | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
Derived from mel command maya.cmds.offsetSurface
Example:
import pymel.core as pm
# To offset the active surface to the specified distance:
pm.offsetSurface( d=4.0 )
# To create an offset using the surface fit offset method:
pm.offsetSurface( 'surface1', m=0, d=2.0 )