paya.runtime.comps.NurbsCurveParameter#

class NurbsCurveParameter(*args, **kwargs)#

Inheritance

NurbsCurveParameter Component1DFloat Component1DFloat ContinuousComponent ContinuousComponent DimensionedComponent DimensionedComponent Component Component PyNode ProxyUnicode

isRange()#
Returns

True if this component represents a range.

Return type

bool

index()#
Returns

The U value at this parameter. If this is a range, only the start of the range will be returned.

Return type

float

indices()#
Returns

A tuple of either one or two indices (representing a U range).

Return type

(float), (float, float)

__float__()#
Returns

This parameter as a float.

Raises

ValueError – Can’t return a float because this parameter instance represents a range.

Return type

float

point(worldSpace=False, plug=False)#
Parameters
  • worldSpace/ws (bool) – return a world-space position; defaults to False

  • plug/p (bool) – return a plug rather than a value; defaults to False

Returns

A point position at this parameter.

Return type

Point | Vector

getWorldPosition(plug=False)#
Parameters

plug/p (bool) – return a plug rather than a value; defaults to False

Returns

A world-space position at this parameter.

Return type

Point | Vector

fraction(plug=False)#
Parameters

plug/p (bool) – return a plug rather than a value; defaults to False

Returns

The curve length fraction at this parameter.

Return type

float | Math1D

length(plug=False)#
Parameters

plug/p (bool) – return a plug rather than a value; defaults to False

Returns

The curve length at this parameter.

Return type

float | Math1D

tangent(plug=False, normalize=False)#
Parameters
  • plug/p (bool) – return a plug rather than a value; defaults to False

  • normalize/nr (bool) – return the normalized tangent; defaults to False

Returns

The curve tangent at this parameter.

Return type

float | Math1D

normal(plug=False, normalize=False)#
Parameters
  • plug/p (bool) – return a plug rather than a value; defaults to False

  • normalize/nr (bool) – return the normalized normal; defaults to False

Returns

The curve normal at this parameter.

Return type

float | Math1D

detach()#
Returns

The resulting shape segments.

Return type

[NurbsCurve]

subCurve(toParameter=None)#
Parameters

toParameter/tp (str, int, float, Math1D) – the end parameter for the sub-curve range; defaults to the domain end if omitted; defaults to None

Returns

The generated sub-curve shape.

Return type

NurbsCurve