paya.runtime.plugs.Geometry#
- class Geometry(*args, **kwargs)#
 Inheritance
AttributeAttributePyNodeProxyUnicode- createShape(name=None, parent=None, intermediate=False, conformShapeName=None)#
 Creates a shape node and connects this geometry output into its input.
- Parameters
 name/n (str) – a name for the shape; defaults to
Noneparent/p (None, str,
Transform) – a transform parent for the new shape; a new transform will be generated if this is omittedintermediate/i (bool) – make the shape an intermediate objects; defaults to False
conformShapeName/csn (bool) – ignored if parent was omitted; rename the shape after it is reparented; defaults to True if parent was provided, otherwise False
- Returns
 The new shape.
- Return type
 
- getShapeMFn()#
 Returns an API function set for the shape type associated with this plug, initialised around the MObject of the data block. Useful for performing spot inspections (like
numCVs()on a curve output) without creating a shape.- Returns
 The function set.
- Return type
 MFnDagNode
- transform(matrix, invertTransform=False, freezeNormals=0)#
 Transforms this geometry by the specified matrix and returns the result.
- Parameters
 matrix – the matrix to use
invertTransform/itf (bool) – invert the transform; defaults to False
a setting for the ‘freezeNormals’ attribute on
transformGeometry. This should be an integer index or an enum label. The available settings are:0: ‘Never’ 1: ‘Always’ 2: ‘Non-rigid Transformations Only’
Defaults to 0 (‘Never’).
- Returns
 The transformed geometry.
- Return type