Go to: Synopsis. Return value. Related.
Flags. Python
examples.
polyPipe([axis=[linear, linear, linear]], [constructionHistory=boolean],
[createUVs=boolean], [height=linear], [name=string], [object=boolean], [radius=linear], [subdivisionsCaps=int], [subdivisionsHeight=int],
[texture=boolean], [thickness=linear])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
polyPipe is undoable, queryable, and editable.
The polyPipe command creates a new polygonal pipe.
string[] |
Object name and node name. |
In query mode, return type is based on queried flag.
polyCone, polyCube, polyCube,
polyPipe, polyPlane, polyPrism, polyPyramid, polySphere, polyTorus
axis, constructionHistory, createUVs, height,
name, object,
radius, subdivisionsCaps, subdivisionsHeight, texture, thickness
Long name (short name) |
Argument types |
Properties |
axis(ax) |
[linear, linear, linear] |
   |
|
This flag specifies the primitive axis used to build the
pipe.
Q: When queried, this flag returns a float[3]. |
|
radius(r) |
linear |
   |
|
This flag specifies the outer radius of the pipe.
C: Default is 1.0.
Q: When queried, this flag returns a float. |
|
height(h) |
linear |
   |
|
This flag specifies the height of the pipe.
C: Default is 2.0.
Q: When queried, this flag returns a float. |
|
thickness(t) |
linear |
   |
|
This specifies the thickness of the pipe.
C: Default is 0.5.
Q: When queried, this flag returns an float. |
|
subdivisionsHeight(sh) |
int |
   |
|
This flag specifies the number of subdivisions along the height
of the pipe.
C: Default is 1.
Q: When queried, this flag returns an int. |
|
subdivisionsCaps(sc) |
int |
   |
|
This flag specifies the number of subdivisions along the
thickness of the pipe.
C: Default is 0.
Q: When queried, this flag returns an int. |
|
createUVs(cuv) |
boolean |
   |
|
This flag alows a texture to be applied.
C: Default is "on" (uv's are computed).
Q: When queried, this flag returns an int. |
|
texture(tx) |
boolean |
 |
|
This flag is obsolete and will be removed in the next release.
The -cuv/createUVs flag should be used instead. |
|
Common flags |
object(o) |
boolean |
 |
|
Create the result, or just the dependency node (where
applicable). |
|
Common flags |
name(n) |
string |
 |
|
Give a name to the resulting node. |
|
constructionHistory(ch) |
boolean |
  |
|
Turn the construction history on or off (where applicable). If
construction history is on then the corresponding node will be
inserted into the history chain for the mesh. If construction
history is off then the operation will be performed directly on the
object.
Note: If the object already has construction history then
this flag is ignored and the node will always be inserted into the
history chain. |
|
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. |
import maya.cmds as cmds
# Create a pipe with height 20 radius 1.0 thickness 0.5 with
# 10 subdivisions along height
cmds.polyPipe( sh=10, h=20 )
# Create a pipe, called "myPipe", on thickness cap there are 5
# subdivisions.
cmds.polyPipe( n='myPipe', sc=5);