pymel.core.modeling.polyPipe

polyPipe(*args, **kwargs)

The polyPipe command creates a new polygonal pipe.

Flags:

Long Name / Short Name Argument Types Properties
axis / ax float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag specifies the primitive axis used to build the pipe. Q: When queried, this flag returns a float[3].
caching / cch bool ../../../_images/query.gif ../../../_images/edit.gif
   
constructionHistory / ch bool ../../../_images/create.gif ../../../_images/query.gif
  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.
createUVs / cuv bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag alows a texture to be applied. C: Default is on(uv’s are computed). Q: When queried, this flag returns an int.
frozen / fzn bool ../../../_images/query.gif ../../../_images/edit.gif
   
height / h float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag specifies the height of the pipe. C: Default is 2.0. Q: When queried, this flag returns a float.
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. Flag can have multiple arguments, passed either as a tuple or a list.
nodeState / nds int ../../../_images/query.gif ../../../_images/edit.gif
   
object / o bool ../../../_images/query.gif ../../../_images/edit.gif
   
radius / r float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag specifies the outer radius of the pipe. C: Default is 1.0. Q: When queried, this flag returns a float.
roundCap / rcp bool ../../../_images/query.gif ../../../_images/edit.gif
   
subdivisionsAxis / sa int ../../../_images/query.gif ../../../_images/edit.gif
   
subdivisionsCaps / sc int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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.
subdivisionsHeight / sh int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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.
texture / tx bool ../../../_images/create.gif
  This flag is obsolete and will be removed in the next release. The -cuv/createUVs flag should be used instead.
thickness / t float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This specifies the thickness of the pipe. C: Default is 0.5. Q: When queried, this flag returns an float. Common flags

Derived from mel command maya.cmds.polyPipe

Example:

import pymel.core as pm

# Create a pipe with height 20 radius 1.0 thickness 0.5 with
# 10 subdivisions along height
pm.polyPipe( sh=10, h=20 )

# Create a pipe, called "myPipe", on thickness cap there are 5
# subdivisions.
pm.polyPipe( n='myPipe', sc=5);