paya.runtime.parts.Bezier#
- class Bezier(groupNode)#
Inheritance
PartPartBaseTrunk- classmethod createChainFromBezierAndUpVectors(numJoints, bezier, upVectors, downAxis=<undefined>, upAxis=<undefined>, opposite=False, resolution=9, parallelTransport=False, parent=None)#
Creates a chain from a guide Bezier curve and matched per-anchor up vectors.
- Parameters
numJoints (int) – the number of joints to generate
bezier (
str,BezierCurve,Transform) – the guide bezier curveupVectors (
list[list[float] |Vector]) – one up vector per anchor on the Bezier curvedownAxis (str) – the ‘bone’ axis; defaults to
paya.config.downAxisupAxis (str) – the axis to map to the up vectors; defaults to
paya.config.upAxisopposite (bool) – flips the (resolved) down axis; defaults to
FalseparallelTransport – resolve up vector blending using parallel transport; defaults to
Falseresolution/res (int) – the number of parallel-transport solutions to generate along the curve; higher numbers improve accuracy at the expense of performance; defaults to 9
interpolation/i: –
defines how to interpolate values from param: vector pairs:
0('None') (you wouldn’t normally want this)1('Linear') (the default)2('Smooth')3('Spline')
parent (
None,str,Transform) – an optional destination parent for the chain; defaults toNone
- Returns
The generated chain.
- Return type
Chain