pymel.core.animation.wrinkle

wrinkle(*args, **kwargs)

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.

Flags:

Long Name / Short Name Argument Types Properties
axis / ax float, float, float ../../../_images/create.gif
  Specifies the plane of the wrinkle.
branchCount / brc int ../../../_images/create.gif
  Specifies the number of branches per wrinkle. Default is 2.
branchDepth / bd int ../../../_images/create.gif
  Specifies the depth of the branching. Default is 0.
center / ct float, float, float ../../../_images/create.gif
  Specifies the center of the wrinkle.
crease / cr unicode ../../../_images/create.gif
  Specifies an existing curve to serve as the wrinkle.
dropoffDistance / dds float ../../../_images/create.gif
  Specifies the dropoff distance around the center.
envelope / en float ../../../_images/create.gif
  The envelope globally attenuates the amount of deformation. Default is 1.0.
randomness / rnd float ../../../_images/create.gif
  Amount of randomness. Default is 0.2.
style / st unicode ../../../_images/create.gif
  Specifies the wrinkle style. Valid values are radialor tangential
thickness / th float ../../../_images/create.gif
  Wrinkle thickness. Default is 1.0.
uvSpace / uv float, float, float, float, float ../../../_images/create.gif
  1/2 length, 1/2 breadth, rotation angle, center u, v definition of a patch in uv space where the wrinkle is to be constructed.
wrinkleCount / wc int ../../../_images/create.gif
  Specifies the number of wrinkle lines to be generated. Default is 3.
wrinkleIntensity / wi float ../../../_images/create.gif
  Increasing the intensity makes it more wrinkly. Default is 0.5. Flag can have multiple arguments, passed either as a tuple or a list.

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'] #