Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Monday, 10 June 2013

Joints info in Mayas UI Hud..

Why this isnt available as standard I dont know but here is a cheap hack

Ive made a simple python scrip to display the number of joints currently visible in the scene and also the number of total joints in the scene as well as the number of child joints of the selected joints.
the script also toggles on or off (run twice to turn the display off..) Enjoy!



Friday, 25 January 2013

A new tool! For script hoarding loading from dropbox..


If like me your always shuffling scripts/tools about with a million shelves and shelf buttons Ive a handy script!

Ive made a Python script that will read any directory you point it at (I have it pointed to my google/dropbox drive) and it will automatically create a window of all those scripts as buttons, better yet if there in folders inside that directory it will group them together in a collapsible tab...

Works with Mel and Python scripts!

Pictures always explain things better..
On the Left is my google drive directory..
The middle and right is what you get with my script.


Copy the Python code into a shelf button..
Then edit this line at the very top of the file:

To point to your own scripts folder ideally outside of maya eg Google or Dropbox..
Enjoy.

Code can be found here:
http://pastie.org/5859612

Works perfectly in Maya2011, all the best.

Sunday, 8 July 2012

Annoying quick selection sets..

If you find yourself selecting stuff, setting a key, then selecting other stuff, this is for you!

Its took me about a week but I really needed a tool to help with setting keys on lots of items but also respect what I have selected, I think I cracked it.

A quick rundown on the script..

Its a python script for Maya 2011, not sure how well it will work in previous versions.
Here is the bit to copy paste into a python shelf button.

#Ive also just updated the below to work much better across files. It now no longer creates a unkown node that can cause problems with saving .MA files. Also it should work much better when nested into referenced files. Happy days.