Introduction to Python for Maya: 05 Creating a UI

preview_player
Показать описание
This series of tutorials introduces the fundamentals of using Python in Maya.

********************** empty window script ***********************

class MR_Window(object):

#constructor
def __init__(self):


# close old window is open

#create new window

#display new window


myWindow = MR_Window()
Рекомендации по теме
Комментарии
Автор

I want you to know that you are an amazing tutor! You are so charismatic, explain everything so well and you really make it fun to code in python. I am a 3D artist but want to grow and learn more than just that. I really hope you keep making these videos, they are great! Have a good one and take care.

TheGreatArlei
Автор

Excellent tutorial; please do not stop producing educational materials of this caliber.

Exia
Автор

What a great explanation is going on here! Hats off man. Really nice video. you earned a sub!!

dvfxanimator
Автор

Excellent work! I appreciate how you took the time to explain things that might seem straightforward.

AnsonSavage
Автор

So many years trying to learn this shit Danm THANK YOU!! now I can crawl out for the primordial soup.

SundayLunch
Автор

Thank you for this great tutorial! I have a stack of GUI books for Python and Maya, but it appears things have changed a lot over the years, so thank you for creating a modern lesson for how to do it. Please make more Maya/Python GUI tutorials! They are very hard to find good ones that work.

BrianHoard
Автор

This is incredibly helpful I'm so glad I stumbled upon this, really helps with my uni work haha!

sofiashanovska
Автор

That was pretty cool, thanks. Thinking about creating a rope along a given curve.
I guess I'll have to figure a way to attach a cylinder to a spline through Python.

flioink
Автор

Thanks for the tutorial, how would you pass an argument into the createCube def from the button?
for example I want a variable called 'myValue' to be passed into createCube every time I press the button:

self.cubeCreateBtn = cmds.button(label='Create cube', command=self.createCube( myValue ) )

Something like the above example but works?

danlane
Автор

# Error: NameError: file <maya console> line 20: name 'MR_Window' is not defined #

FiorellaFio-sbuc
Автор

It keeps telling me self is not defined....I use the exact same code??

robinandblom
Автор

too much advertising poping in the middle of script

arundanimator
Автор

Why do you start with a class right off the bat? Why is a class a necessary step for creating a UI? As far as I can tell, you made a class here, but then just filled that class with 2 functions and didn't actually use the class for anything.

Why couldn't you just do this with functions?

RyanMandseth
visit shbcf.ru