tpRigToolkit.tools.controlrig.core.controldata module

Module that contains data definition for CV based controls

class tpRigToolkit.tools.controlrig.core.controldata.ControlData(name='', control_data=None, parent=None)

Bases: object

Basic storage class for controls

property data
property name
property parent
property shapes
class tpRigToolkit.tools.controlrig.core.controldata.ControlPool(*args, **kwargs)

Bases: set

Set object that contains all controls loaded by the ControlManager

remove(target)

Remove an element from a set; it must be a member.

If the element is not a member, raise a KeyError.

class tpRigToolkit.tools.controlrig.core.controldata.ControlShape(cvs=None, degree=1, periodic=False)

Bases: object

Base class that handles control shapes as a sequences of points in space

apply_transform()

Apply the transforms to the current shape

property cvs
property degree
get_cvs()
get_degree()
get_periodic()
get_smooth()
get_transformed_cvs()
property periodic
set_cvs(cvs)
set_smooth(smooth)
set_transformed_cvs(cvs)
property smooth
transform(offset, scale, axis, mirror)

Stores the new transform of the curve shape :param offset: position offset :param scale: scale factor :param axis: axis order :param mirror:

property transformed_cvs
class tpRigToolkit.tools.controlrig.core.controldata.ControlV

Bases: list

Base class used to represent curve CVs

ControlVWrapper()
static mirror_vector()
reorder(order)

With a given order sequence CVs will be reordered (for axis order purposes) :param order: list(int)