Sunday 15 November 2015

maya tips! inview message help

Python inviewmessage command help:
Since maybe Maya 2014 there's been a groovy viewport feedback tool called inViewMessage.
You'll have seen it when using some default maya commands like hiding objects and changing the viewport mode. Overkill for hiding an object if you've actually used Maya before, but it's nice to look at!
ooo would you look at that!
Here's my messages script, it's a work in progress but has some info and warning commands
https://github.com/tb-animator/tbtools/blob/master/lib/tb_messages.py

turn on inview messages here

Before that all you could use was headsUpMessage;
It's true, nobody ever sees it


Sunday 1 November 2015

Modifying the default enum attribute values in Maya

So, when you add an enum attribute to an object in Maya you get a default pair of values "Green" and "Blue". I like to use enum attributes for switches on rigs, eg visibility toggles etc. It works great and you get the cool little popup menu. You can add as many options as you wish as well so it's nice and flexible like that.


But... Wouldn't it be nice to have the default values something more useable? Well, you can. So here's how I tracked down where they come from, so they can be changed. (This is my usual method for finding out how something core to Maya works)