Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

planarSrf( objects , [caching=boolean], [constructionHistory=boolean], [degree=int], [keepOutside=boolean], [name=string], [nodeState=int], [object=boolean], [polygon=int], [range=boolean], [tolerance=linear])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

planarSrf is undoable, queryable, and editable.

This command computes a planar trimmed surface given planar boundary curves that form a closed region.

Return value

string[]Object name and node name

In query mode, return type is based on queried flag.

Flags

caching, constructionHistory, degree, keepOutside, name, nodeState, object, polygon, range, tolerance
Long name (short name) Argument types Properties
degree(d) int createqueryedit
The degree of the resulting surface: 1 - linear, 3 - cubic
Default: 3
keepOutside(ko) boolean createqueryedit
If true, keep the regions outside the given curves.
Default: false
tolerance(tol) linear createqueryedit
The distance tolerance for the cvs of the curves to be in the same plane.
Default: 0.01
Common flags
constructionHistory(ch) boolean create
Turn the construction history on or off.
name(n) string create
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.
object(o) boolean create
Create the result, or just the dependency node.
polygon(po) int create
The value of this argument controls the type of the object created by this operation
  • 0: nurbs surface
  • 1: polygon (use nurbsToPolygonsPref to set the parameters for the conversion)
  • 2: subdivision surface (use nurbsToSubdivPref to set the parameters for the conversion)
  • 3: Bezier surface
  • 4: subdivision surface solid (use nurbsToSubdivPref to set the parameters for the conversion)
range(rn) boolean create
Force a curve range on complete input curve.
Advanced flags
caching(cch) boolean createqueryedit
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
nodeState(nds) int createqueryedit
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# create linear planar trimmed surface given boundary curve(s)
cmds.planarSrf( d=1 )

# use boundary curve(s) to create a hole by
# keeping the outside trimmed regions
cmds.planarSrf( ko=True)