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 distance Default:1.0
frozen / fzn bool  
   
method / m int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Offset method 0 - Surface Fit 1 - CV Fit Default:0 Common 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. Flag can have multiple arguments, passed either as a tuple or a list.
object / o bool ../../../_images/create.gif
  Create the result, or just the dependency node. Advanced flags

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 )