paya.runtime.networks.CurveUpVectorAimCurveSampler#
- class CurveUpVectorAimCurveSampler(*args, **kwargs)#
Inheritance
CurveUpVectorSampler
System
Network
Network
DependNode
DependNode
PyNode
ProxyUnicode
Works similarly to the ‘aim curve’ mode of a
curveWarp
deformer.Note
Returned vectors won’t be perpendicular to curve tangents, with the expectation that they will be perpendicularized during subsequent matrix construction.
- classmethod create(curve, aimCurve, closestPoint=True)#
- Parameters
curve (str,
paya.runtime.nodes.NurbsCurve
,paya.runtime.nodes.Transform
,paya.runtime.plugs.NurbsCurve
) – the curve on which to create the sampleraimCurve (str,
paya.runtime.nodes.NurbsCurve
,paya.runtime.nodes.Transform
,paya.runtime.plugs.NurbsCurve
) – the curve from which to pull per-point aiming interestsclosestPoint/cp (bool) – pull points from aimCurve by proximity rather than matched parameter; defaults to
True
- Returns
The network system.
- Return type
- classmethod _create(curve, aimCurve, closestPoint=True)#
- Parameters
curve (str,
paya.runtime.nodes.NurbsCurve
,paya.runtime.nodes.Transform
,paya.runtime.plugs.NurbsCurve
) – the curve on which to create the sampleraimCurve (str,
paya.runtime.nodes.NurbsCurve
,paya.runtime.nodes.Transform
,paya.runtime.plugs.NurbsCurve
) – the curve from which to pull per-point aiming interestsclosestPoint/cp (bool) – pull points from aimCurve by proximity rather than matched parameter; defaults to
True
- Returns
The network system.
- Return type
- byClosestPoint()#
- Returns
True
if this sampler was configured to use closest-point calculations, otherwiseFalse
.- Return type
- aimCurve()#
- Returns
The aim curve output connected to this system.
- Return type