Hello!
This is my first post on polycount and I hope I post this thread in the right place.
I wrote a script yesterday which makes it possible to batch bake normal maps in Maya. A few artists at The Game Assembly, where I study, got frustrated having to bake all their maps manually when working with complex models such as weapons so I decided to give it a try. The script uses the same command as the Transfer Maps tool.
Known bugs at the moment:
- When opening file browser and clicking Close instead of Save, the script gives an error. Other than that it works as intended.
If you try it, please let me know if you find any errors.
Download
Save some time and good luck!
See more of my work at
www.mellergardportfolio.se
Replies
http://www.froyok.fr/blog/2012-10-maya-froxnormal-0-6-an-xnormal-batcherexporter-for-maya
Sorry about that...
it returns None if the user cancels, or a list of file paths if save is hit.
a other option is to just let it error and use exception handling, to pass the TypeError.
I tried the if statement you mentioned but "if not filePath == NoneType:" wouldn't work. Perhaps I was doing it wrong.
The try, except is a good idea, though. I use that quite often.