The wrinkle command is used to create a network of wrinkles on a surface. It automatically creates a network of wrinkle curves that control a wire deformer. The wrinkle curves are attached to a cluster deformer.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
axis (ax) | float, float, float | ||
|
|||
branchCount (brc) | int | ||
|
|||
branchDepth (bd) | int | ||
|
|||
center (ct) | float, float, float | ||
|
|||
crease (cr) | unicode | ||
|
|||
dropoffDistance (dds) | float | ||
|
|||
envelope (en) | float | ||
|
|||
randomness (rnd) | float | ||
|
|||
style (st) | unicode | ||
|
|||
thickness (th) | float | ||
|
|||
uvSpace (uv) | float, float, float, float, float | ||
|
|||
wrinkleCount (wc) | int | ||
|
|||
wrinkleIntensity (wi) | float | ||
|
Derived from mel command maya.cmds.wrinkle
Example:
import pymel.core as pm
# Apply radial wrinkles to a sphere:
mySph = pm.sphere()
pm.wrinkle( mySph, st='radial', wc=3, brc=2, bd=0, th=1, rnd=0.2, wi=0.5, uv=(2.0, 4.0, 0.0, 2.0, 4.0) )
# Result: [u'cluster1', u'cluster1Handle', u'wire1', u'wrinkle1', u'wrinkle2', u'wrinkle3'] #
# Apply a 5-line tangential wrinkle to a plane:
myPlane = pm.nurbsPlane( w=50, u=20, v=20 )
pm.wrinkle( myPlane, st='lines', wc=5, th=1.0, rnd=0.2, wi=0.5, uv=(1.0, 1.0, 0.0, 0.5, 0.5) )
# Result: [u'cluster2', u'cluster2Handle', u'wire2', u'wrinkle4', u'wrinkle5', u'wrinkle6', u'wrinkle7', u'wrinkle8'] #