paya.runtime.parts.Leg#

class Leg(groupNode)#

Inheritance

Triad Part PartBase Trunk

classmethod createChain(points, upVector, downAxis=<undefined>, upAxis=<undefined>, numTopTwists=0, numBtmTwists=0, parent=None, ikJitter=False, opposite=False)#

Creates a skeletal chain for a leg. The chain will comprise joints for the following:

[0] hip [1] knee [2] ankle [3] ball of foot [4] toe tip

Parameters
  • points (list [list [float] | Point | Vector]) – five points (one for each joint); excess points will be discarded

  • upVector – the main up vector hint for the chain; this will guide cross product calculations to resolve orientations for the main bend axis

  • downAxis (str) – the ‘bone’ axis; defaults to paya.config.downAxis

  • upAxis (str) – the axis to map to the up vector; defaults to paya.config.upAxis

  • numTopTwists (int) – the number of twist joints to insert on the top (bicep / thigh) bone; defaults to 0

  • numBtmTwists (int) – the number of twist joints to insert on the btm (forearm / shin) bone; defaults to 0

  • parent (None, str, Transform) – an optional destination parent for the chain; defaults to None

  • opposite (bool) – flips the (resolved) down axis; defaults to False

Returns

The generated chain.

Return type

Chain