Your Ad Here

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

Synopsis

loft( curve1 curve2 [curve3 ...] , [autoReverse=boolean], [close=boolean], [constructionHistory=boolean], [createCusp=boolean], [curveOnSurface=boolean], [degree=int], [name=string], [object=boolean], [polygon=int], [range=boolean], [rebuild=boolean], [replaceOriginal=boolean], [reverse=boolean], [reverseSurfaceNormals=boolean], [sectionSpans=int], [uniform=boolean])

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

loft is undoable, queryable, and editable.

This command computes a skinned (lofted) surface passing through a number of NURBS curves. There must be at least two curves present. The NURBS curves may be surface isoparms, curve on surfaces, trimmed edges or polygon edges.

Flags

autoReverse, close, constructionHistory, createCusp, curveOnSurface, degree, name, object, polygon, range, rebuild, replaceOriginal, reverse, reverseSurfaceNormals, sectionSpans, uniform
Long name (short name) [argument types] Properties
uniform(u) boolean queryedit
If set to true, the resulting surface will have uniform parameterization in the loft direction. If set to false, the parameterization will be chord length.
Default: false

In query mode, this flag needs a value.

close(c) boolean queryedit
If set to true, the resulting surface will be closed (periodic) with the start (end) at the first curve. If set to false, the surface will remain open.
Default: false

In query mode, this flag needs a value.

degree(d) int queryedit
The degree of the resulting surface
Default: 3

In query mode, this flag needs a value.

autoReverse(ar) boolean queryedit
If set to true, the direction of the curves for the loft is computed automatically. If set to false, the values of the multi-use reverse flag are used instead.
Default: true

In query mode, this flag needs a value.

reverse(r) boolean queryeditmultiuse
Multi-use flag; each occurence of the flag refers to the matching curve in the loft operation; if the flag is set the particular curve will be reversed before being used in the loft operation.
Default: false

In query mode, this flag needs a value.

reverseSurfaceNormals(rsn) boolean queryedit
If set, the surface normals on the output NURBS surface will be reversed. This is accomplished by swapping the U and V parametric directions.
Default: false

In query mode, this flag needs a value.

sectionSpans(ss) int queryedit
The number of surface spans between consecutive curves in the loft.
Default: 1

In query mode, this flag needs a value.

createCusp(cc) boolean queryeditmultiuse
Multi-use flag; each occurence of the flag refers to the matching curve in the loft operation; if the flag is set the particular profile will have a cusp (tangent break) in the resulting surface.
Default: false

In query mode, this flag needs a value.

name(n) string create
Name the resulting object
constructionHistory(ch) boolean create
Turn the construction history on or off (not available in all commands)
object(o) boolean create
Create the result, or just the dependency node (not available in all commands)
replaceOriginal(rpo) boolean create
Create "in place" (i.e., replace) (not available in all commands)
curveOnSurface(cos) boolean create
If possible, create 2D curve as a result (not available in all commands)
polygon(po) int create
The value of this argument controls the type of the object created by this operation (not available in all commands)
  • 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 (not available in all commands)
rebuild(rb) boolean create
Rebuild the input curve(s) before using them in the operation. Use nurbsCurveRebuildPref to set the parameters for the conversion. (not available in all commands)

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.

Return value


[string[]] (object name and node name)

Related

multiProfileBirailSurface

Python examples

import maya.cmds as cmds

# A loft across two curves: curve1, curve2. Curve ranges
# have been enabled on the curves. The curves will be reversed
# internally if needed to avoid a bowtie looking surface.
cmds.curve( d=3, p=( (-11, 0, 0), (-13, 0, -4), (-17, 0, -15), (-4.7, 0, -10), (1, 0, -8 ) ) )
# Result: curve1 #
cmds.curve( d=3, p=( (-2, 0, 5), (-2, 0, 3), (-2, 0, -1), (4, 0, 0), (7, 0, 0 ) ) )
# Result: curve2 #
cmds.loft( 'curve1', 'curve2', ch=True, rn=True, ar=True )

  

Return to Autodesk Index


Your Ad Here