paya.runtime.parts.Triad#
- class Triad(groupNode)#
Inheritance
PartPartBaseTrunk- classmethod createChain(points, upVector, tipMatrix=None, downAxis=<undefined>, upAxis=<undefined>, numTopTwists=0, numBtmTwists=0, parent=None, ikJitter=False, opposite=False)#
Creates a three-point skeletal chain.
- Parameters
points (
list[list[float] |Point|Vector]) – a world position for each joint; three points are required; excess points will be discardedupVector – the main up vector hint for the chain; this will guide cross product calculations to resolve orientations for the main bend axis
tipMatrix (
None,list[float],Matrix) – an optional rotation matrix override for the tip (end) joint; if provided, only orientation information will be used; defaults toNonenumTopTwists (int) – the number of twist joints to insert on the top (bicep / thigh) bone; defaults to
0numBtmTwists (int) – the number of twist joints to insert on the btm (forearm / shin) bone; defaults to
0downAxis (str) – the ‘bone’ axis; defaults to
paya.config.downAxisupAxis (str) – the axis to map to the up vector; defaults to
paya.config.upAxisparent (
None,str,Transform) – an optional destination parent for the chain; defaults toNoneikJitter (bool) – ignored if twist joints are involved; if this chain is in-line, auto-configures preferred angles to prevent lockout; defaults to
Falseopposite (bool) – flips the (resolved) down axis; defaults to
False
- Returns
The generated chain.
- Return type
Chain