paya.runtime.parts.Bezier#
- class Bezier(groupNode)#
Inheritance
Part
PartBase
Trunk
- 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.downAxis
upAxis (str) – the axis to map to the up vectors; defaults to
paya.config.upAxis
opposite (bool) – flips the (resolved) down axis; defaults to
False
parallelTransport – resolve up vector blending using parallel transport; defaults to
False
resolution/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