paya.runtime.nodes.DeformableShape#

class DeformableShape(*args, **kwargs)#

Inheritance

DeformableShape GeometryShape GeometryShape Shape Shape DagNode DagNode Entity Entity ContainerBase ContainerBase DependNode DependNode PyNode ProxyUnicode

getGeoInput()#

Matched counterpart for getGeoOutput(). Equivalent to self.geoInput.

Returns

The shape input, for example inMesh on a mesh node.

Return type

Geometry

getGeoOutput(worldSpace=False)#

Convenience method; allows you to pick between the world- and local- space abstract outputs using a keyword argument:

def someMethod(self, worldSpace=False):

    # This
    output = self.getGeoOutput(ws=worldSpace)
    output.doSomething()

    # Instead of this
    if worldSpace:
        output = self.worldGeoOutput

    else:
        output = self.localGeoOutput

    output.doSomething()
Parameters

worldSpace/ws (bool) – return the world-space geometry output; defaults to False

Returns

The geometry output plug, for example outMesh on a mesh shape.

Return type

Geometry

classmethod getPlugClass()#
Returns

The geometry attribute subclass associated with this shape.

Return type

Geometry

deleteHistory()#

Deletes history on this node.

Returns

self

Return type

DeformableShape

hasHistory()#
Returns

True if this shape has history, otherwise False.

Return type

bool

getOrigPlug(create=False)#
Parameters

create/c (bool) – create the original geometry if it doesn’t already exist

Returns

The output of the best candidate for an ‘original geometry’ in this shape’s history, or None

Return type

Geometry, None

getHistoryPlug(create=False)#
Parameters

create/c – create a historical input if it doesn’t already exist

Returns

The input into this shape, or None

Return type

Geometry, None