Hi eveyone,

This is my first post dedicated to scripting. I´m creating on my spare time an auto-rig tool for Autodesk Maya and I already have some stuff coded, but I decided to share some of the functions with you, and create a tool that could help you and speed up your rigging tasks. This first version of the kit, will allow you to create FK chains, IK chains with the up-vector, and a basic spherical control. I will create more posts with updated versions of this tool kit, implementing new features on it.

Please feel free to contact me and tell me if you are using it, so maybe we could share more stuff.

Requeriments

This tool has been created and tested only under Windows at this actual moment, and only on Autodesk  Maya 2014. Probably will work on previous versions. If you are using this tool on previous versions, please let me know if it is working.

For use this tool, you should have installed PyQt4 and running on Autodesk Maya.

If you don´t have installed PyQt4 on Autodesk Maya, follow the next steps:

  • Download PYQT4 for python 2.7
  • Copy the PyQt4 folder, and the sip.pyd file from your python26/lib/site-packages directory into the Maya install / python/lib/site-packages directory.

Test if PyQt4 is working

Open the script editor, create a Python tab and paste the following code:

[pastacode lang=”python” message=”Testing PyQt on Maya” highlight=”” provider=”manual”]

import sys 
from PyQt4 import QtGui 
 
class Example(QtGui.QWidget): 
	def __init__(self): 
		super(Example, self).__init__() 
		self.initUI() 

	def initUI(self): 
		self.btn = QtGui.QPushButton('Dialog', self) 
		self.btn.move(20, 20) 
		self.btn.clicked.connect(self.showDialog) 

		self.le = QtGui.QLineEdit(self) 
		self.le.move(130, 22) 

		self.setGeometry(300, 300, 290, 150) 
		self.setWindowTitle('Input dialog') 
		self.show() 

	def showDialog(self): 
		text, ok = QtGui.QInputDialog.getText(self, 'Input Dialog', 'Enter your name:') 
		if ok: 
			self.le.setText(str(text)) 

ex = Example() 

[/pastacode]

 

How to install the Tool Kit dc_riggingTools

  • Download the kit
  • Copy the dc_riggingTools directory into you c:/users/UserName/My Documents/Maya/Scripts

Running the Kit

Copy and run this code on a Python tab on the script editor.

[pastacode lang=”python” message=”Running the Kit on Maya” highlight=”” provider=”manual”]

import sys, os
from os.path import expanduser
home = expanduser("~")
mayaPath = "/maya/scripts/dc_riggingTools"
sys.path.append( home+mayaPath)
import dc_riggingTools
dc_riggingTools.main()

[/pastacode]

 

Tools on this v0.1 of the Kit

FK Chains

  • The user can create several Fk chains.
  • The joints will be align and the rotation zero out.
  • Spherical controls will be created to control the joint chain.

Steps

  1. The first step is to give a name for the chain and select the number of joints that the chain will have.
  2. Select the number of joints (1-99), and place the locators where he wants.
  3. The last step is just click on create it.
dc_riggingTools v01 fk
FK Chain tool

IK Chains

  • The user can create several  basic IK chains.
  • The joints will be align and the  rotation zero out.
  • Ik and up-vector controls.

Steps

  1. Enter the name for the Ik chain
  2. Click on Create Temporal Locators, and place the locators where you want.
  3. Finally, click on Create Ik Chain
dc_riggingTools v01 Ik
IK Chain tool

Spherical Control

  • Basic spherical control.

Steps

  1. Enter a name for the shape
  2. Click on Create Control
dc_riggingTools v01 controls
Create Control tool

 

Next features implemented

  • Enable build Ik chains with squash and stretch
  • IK spline chains
  • Ik/Fk chains

 

Please contact me for suggestions.

Thanks for reading and see you on next updates.