paya.runtime.nodes.GeometryFilter#

class GeometryFilter(*args, **kwargs)#

Inheritance

GeometryFilter DependNode DependNode PyNode ProxyUnicode

classmethod getFromGeo(*geometry)#
Parameters

*geometry (list, tuple, Transform, DeformableShape,) – the geometries to inspect

Returns

Deformers of this type detected across the specified geometries.

Return type

[GeometryFilter]

getShapes()#

Convenience wrapper for deformer(q=True, g=True).

Return type

The shapes affected by this deformer.

Returns

[DeformableShape]

dumpWeights(filepath, shape=None, remap=None, vertexConnections=None, weightPrecision=None, weightTolerance=None, attribute=None, defaultValue=None)#

Wrapper for deformerWeights() in ‘export’ mode. Arguments are post-processed to ensure that only relevant deformers and shapes are included. See Maya help for deformerWeights() for complete flag information.

Parameters
  • filepath (str) – the path to the XML file.

  • shape/sh (list, tuple, str, PyNode) – the shape to export weights for; if omitted, all associated shapes are included

Returns

self

Return type

GeometryFilter

loadWeights(filepath, shape=None, method='index', worldSpace=None, attribute=None, ignoreName=None, positionTolerance=None, remap=None)#

Wrapper for deformerWeights() in ‘import’ mode. Arguments are post-processed to ensure that only relevant deformers and shapes are included. See Maya help for deformerWeights() for complete flag information.

Parameters
  • filepath (str) – the path to the XML file.

  • shape/sh (list, tuple, str, PyNode) – the shape to export weights for; if omitted, all associated shapes are included

Returns

self

Return type

GeometryFilter

copyWeightsFrom(sourceDeformer, sourceShape=None, destShape=None, sourceUVSet=None, destUVSet=None, method='index')#

Copies weights from another deformer to this one.

Parameters
  • sourceDeformer (str, GeometryFilter) – the deformer to copy weights from

  • sourceShape/ssh (str, DagNode) – the shape to copy weights from; if omitted, defaults to the first detected shape

  • destShape/dsh (str, DagNode) – the shape to copy weights to; if omitted, defaults to the first detected shape

  • sourceUVSet/suv (str, None) – if specified, ‘method’ will be overriden to ‘uv’; if omitted, and ‘method’ is ‘uv’, the current UV set will be used; defaults to None

  • destUVSet/duv (str, None) – if specified, ‘method’ will be overriden to ‘uv’; if omitted, and ‘method’ is ‘uv’, the current UV set will be used; defaults to None

  • method/m (str) –

    one of:

    • index (via XML)

    • bilinear (via XML)

    • barycentric (via XML)

    • nearest (via XML)

    • over (via XML)

    • closestPoint (in-scene)

    • closestComponent (in-scene)

    • uv (in-scene)

    • rayCast (in-scene)

Returns

self

Return type

GeometryFilter