• Fernanda

Debugging in Maya with Stack Trace | Tech Art Bites

Updated: Oct 13, 2020

Did you know that having this option enabled in your script editor will make your life a lot easier?

It might seem obvious to point this out. But if we all assume something is obvious and don't talk about it, how are less experienced game devs supposed to learn it? School doesn't teach you everything!

The Show Stack Trace option enables a feature in the script editor that gives you a more detailed error message. It shows you which line and/or functions the error happened.


1 def doSomething(a):
2   a += 1 
3   print "\nI'm doing %s somethings" %a
5 doSomething(4)

If I run this, it correctly returns:

I'm doing 5 somethings

To demonstrate, I'm going to run doSomething("ohno") :

We can't add a string and an integer together, so Stack Trace tells me that when it tried to run the function doSomething() on line 5, it encountered an TypeError on line 2 (a += 1).

I hope this helps!


121 views0 comments

Recent Posts

See All

Character Rigging | Yori | Part IX

I'd like to thank my friend and Character Artist, Miki Bishop, for letting me use this character for this series. https://mikibishop.com/ Jiggly Bits! Right Side of the body! Since we already covered

AutoRigger Showcase | Leg Module

Missed the Arm Module? Check it out! Here's the leg portion of the autorigger. Not much to talk about on this one since the arm and leg modules share a lot of methods. That's the great thing about div