paya.runtime.nodes.Shape#

class Shape(*args, **kwargs)#

Inheritance

Shape DagNode DagNode Entity Entity ContainerBase ContainerBase DependNode DependNode PyNode ProxyUnicode

classmethod createShape(name=None, parent=None, conformShapeName=None, intermediate=False)#

Basic shape constructor.

Parameters
  • name/n (str) – the shape name; defaults to a contextual name

  • parent/p (None, str, Transform) – a custom destination parent; defaults to None

  • conformShapeName/csn (bool) – ignored if parent was omitted; rename the shape after it is reparented; defaults to True if parent was provided, otherwise False

  • intermediate/i (bool) – create the shape as an intermediate object; defaults to False

Returns

The shape node.

Return type

Shape

toShape()#
Returns

If this node is a transform, its first shape child; otherwise, the node itself.

Return type

Shape or Transform

toTransform()#
Returns

If this node is a shape, its parent; otherwise, the node itself.

Return type

Shape or Transform

conformName()#

Conforms this shape’s name to a Maya-standard format derived from the transform parent.

Returns

self

Return type

Shape