paya.runtime.nodes.CurveWarp#

class CurveWarp(*args, **kwargs)#

Inheritance

CurveWarp THdeformer THdeformer WeightGeometryFilter WeightGeometryFilter GeometryFilter GeometryFilter DependNode DependNode PyNode ProxyUnicode

classmethod create(*geometryAndCurve, aimCurve=None, autoNormals=True, closestPoint=True, keepLength=True, loopClosedCurves=True, alignment='auto', samplingAccuracy=1.0, offset=0.0, name=None)#

Initialises a curveWarp deformer.

Parameters
  • *geometryAndCurve – required; the curve and one or more meshes to bind, in no particular order

  • aimCurve/aic (str, None, Transform, NurbsCurve) – a curve to use for up vector resolution; defaults to False

  • autoNormals/aut (bool) – if no aimCurve is provided, set normal calculation on the node (attribute aimMode) to ‘Auto’ rather than ‘Curve Normals’; defaults to True

  • closestPoint/cp (bool) – set this to False when the two curves are of matched domain, to cut down on extraneous closest-point calculations; defaults to True

  • keepLength/kl (bool) – keep the driven geometries’ lengths; defaults to True

  • loopClosedCurves/lcc (bool) – loop sliding on closed curves; defaults to True

  • alignment/ali

    an index or enum key for the alignment node attribute:

    • 1: ‘Auto’ (the default)

    • 2: ‘X’

    • 3: ‘Y’

    • 4: ‘Z’

  • samplingAccuracy/acc (float) – the curve sampling accuracy; defaults to 1.0

  • offset/off (float, Math1D) – a slide offset along the curve; defaults to 0.0

  • name/n (str) – a name for the node; defaults to None

Type

str, NurbsCurve, Mesh, Transform

Returns

The deformer node.

Return type

CurveWarp