splineIK.ui module

class splineIK.ui.ComboBoxWidget(parent, label, items, defaultItem=None)

Bases: splineIK.ui.LabelWidget

currentText()
staticMetaObject = <PySide.QtCore.QMetaObject object>
class splineIK.ui.ControlWidget(parent, label, defaultShape, defaultColour)

Bases: PySide.QtGui.QWidget

getColour()
getShape()
staticMetaObject = <PySide.QtCore.QMetaObject object>
class splineIK.ui.InputWidget(parent, label)

Bases: splineIK.ui.LabelWidget

staticMetaObject = <PySide.QtCore.QMetaObject object>
text()
class splineIK.ui.LabelWidget(parent, label, widget)

Bases: PySide.QtGui.QWidget

staticMetaObject = <PySide.QtCore.QMetaObject object>
class splineIK.ui.SelectWidget(parent, label, button)

Bases: PySide.QtGui.QWidget

released = <PySide.QtCore.Signal object>
setText(text)
staticMetaObject = <PySide.QtCore.QMetaObject object>
text()
class splineIK.ui.SpinBoxWidget(parent, label, defaultValue, minValue, maxValue)

Bases: splineIK.ui.LabelWidget

staticMetaObject = <PySide.QtCore.QMetaObject object>
value()
class splineIK.ui.SplineIKWidget(parent)

Bases: PySide.QtGui.QWidget

doCreate()

Read the values of the ui and create a spline ik, if the creation is succesfull the root control of the setup will be created. A ValueError will be raised if the input field is empty or no curve is selected.

Raises:ValueError – if the input or curve field are empty
getSelection()

Get the current selection and see if the shapes of the first instance of the selection are of type ‘nurbsCurve’ or ‘bezierCurve’, if the criteria are met the line edit of the curve selection widget is updated. If the criteria are not met a ValueError will be raised.

Raises:ValueError – if the selection criteria are not met.
staticMetaObject = <PySide.QtCore.QMetaObject object>
splineIK.ui.divider(parent)

Create divider ui widget.

Parameters:parent (QWidget) –
Return type:QFrame
splineIK.ui.getIconPath(name)

Get an icon path based on file name. All paths in the XBMLANGPATH variable processed to see if the provided icon can be found.

Parameters:name (str) –
Returns:Icon path
Return type:str/None
splineIK.ui.mayaWindow()

Get Maya’s main window.

Return type:QMainWindow
splineIK.ui.show()