splineIK.utils.attribute module

splineIK.utils.attribute.addAttr(node, attr, **kwargs)

Add a attribute to a node, it check if the attribute exists and if it does not, then attempt to add the attribute.

Parameters:
  • node (str) –
  • attr (str) –
splineIK.utils.attribute.addSpacerAttr(node, attr='controls')

Add a spacer attribute to a node, by default the attribute is called “controls”.

Parameters:
  • node (str) –
  • attr (str) –
splineIK.utils.attribute.enumStringToValue(attr, lowercase=False)

Creates a dictionary mapper for enum values. This util can be used to set enum attributes with string values.

Parameters:
  • attr (str) –
  • lowercase (bool) –
Returns:

enumStringToValue

Return type:

dict