Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
Hi
So I'm following an online course on Udemy for Python Coding for Maya, I've written out the code the same as the instructor (per the image), I've followed everything in the video. And it doesn't work, I keep getting "# Error: IndentationError: file <maya console> line 2: unexpected indent #" This is driving me mad. Why is this happening?
Hey
No, there are no spaces. However, I have tried it with spaces and it still doens't work. I'll try your suggestions of 4 spaces instead of a tab.
Thanks
ok I got it.
Your function is indented for no reason it has to have the same indentation as "from maya import cmds"
Can't find what you're looking for? Ask the community or share your knowledge.