TurboSquid 3D Marketplace

TurboSquid 3D Marketplace
For all your digital needs, shop TurboSquid
Showing posts with label scripting. Show all posts
Showing posts with label scripting. Show all posts

Saturday, November 6, 2010

Python Scripting in Maya

I haven't had a chance to work much with Python in Maya, so today I decided that I would try to write some kind of script in Python. Here it is:



Click on the image for a larger version. It's a very simple script, it just makes a joint chain, adds IK to it, and then makes sliders that control the IK Blend and twist. The only problem I had making it was that, as you may know, MEL and Python are case-sensitive like most programming languages and I had a capital letter where there should have been a lower case letter. It took me a while to find the problem LOL!

I think that I will try to alter the script to get some kind of iteration out of it, using for or while loops, etc. That will be my next goal, unless I decide to do something else first :)