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 Specifies the plane of the wrinkle. branchCount / brc int Specifies the number of branches per wrinkle. Default is 2. branchDepth / bd int Specifies the depth of the branching. Default is 0. center / ct float, float, float Specifies the center of the wrinkle. crease / cr unicode Specifies an existing curve to serve as the wrinkle. dropoffDistance / dds float Specifies the dropoff distance around the center. envelope / en float The envelope globally attenuates the amount of deformation. Default is 1.0. randomness / rnd float Amount of randomness. Default is 0.2. style / st unicode Specifies the wrinkle style. Valid values are radialor tangential thickness / th float Wrinkle thickness. Default is 1.0. uvSpace / uv float, float, float, float, float 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 Specifies the number of wrinkle lines to be generated. Default is 3. wrinkleIntensity / wi float 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'] #