pymel.core.modeling.offsetSurface

offsetSurface(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information.Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off
distance (d) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Offset distanceDefault:1.0
method (m) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Offset method 0 - Surface Fit 1 - CV FitDefault:0Advanced flags
name (n) unicode ../../../_images/create.gif
 

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.

nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information.Note:For advanced users only.Common flags
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency nodeFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

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 )

Previous topic

pymel.core.modeling.offsetCurveOnSurface

Next topic

pymel.core.modeling.planarSrf

Core

Core Modules

Other Modules

This Page