I need to learn how to use classes also, if you find a good tutorial, let me know ;)
On Jan 12, 5:55 pm, Martin La Land Romero <martinmrom...@gmail.com> wrote: > Thanks PixelMucher! > > I did a few UIs using Python in Maya but I did it all with Functions, some > of the techguys at work told me to put it in a class so I figured I'll give > it a try since my next step is to learn class. > Thanks > > > > On Wed, Jan 12, 2011 at 2:28 PM, PixelMuncher <pixeldr...@gmail.com> wrote: > > Look at "By Category" section of the Python section of the Maya > > manual. > > Most if not all of the commands include examples which include > > creating a window. > > If your as typeA as I am, you can copy the code to the script editor, > > execute, then screen capture the resulting window and setup a > > reference document with the screen capture and the code side by side. > > > On Jan 12, 2:29 am, "martinmrom...@gmail.com" > > <martinmrom...@gmail.com> wrote: > > > Hello Everyone, > > > > I was just wondering. The Maya docs says "If you want to create your > > > own UI in Maya, we recommend that you use Python" > > > Does anyone know of good UI tutorials done in python? > > > > I tried running > > > The following are some helpful tips. We recommend that you use the > > > shelfEditorWindow.py file as a start and customize it accordingly. You > > > can find the shelfEditorWindow.py file in the Maya installation > > > directory, under the following path: > > > > * (Windows) > > > > ...\Python\Lib\site-packages\maya\app\general > > > \shelfEditorWindow.py > > > > I got the error below, does anyone else got this? > > > > "# Error: line 1: AttributeError: file C:\Program Files\Autodesk > > > \Maya2011\Python\lib\site-packages\pymel-1.0.0-py2.6.egg\maya\utils.py > > > line 51: 'module' object has no attribute '__file__' # > > > > Thanks > > > -- > >http://groups.google.com/group/python_inside_maya > > -- > Martin La Land > Romerowww.martinromerovfx.comhttp://martinromerovfx.blogspot.com/ > martinmrom...@gmail.com > (415)261-2172 -- http://groups.google.com/group/python_inside_maya