Hi guys
I'm new to Python in Maya, however i know some Max and Mel script so...not a complete noob
anyways lately i have decided to learn python for my job as a rigger and td. I am following a tutorial called Building UI's with python by Jeremy Ernst.
I have followed his script word by word to make sure there isn't any typos or unnecessary white spaces. i save the script in documents/maya/scripts file. when i open Maya i toggle from Mel to Maya and try to use an import cmds script in the python tab of the script editor, I then hit execute
Nothing! in the video a UI is supposed to pop up in the view port??
So i figure the tutorial is using an older version of Maya to me, so i download the older 2011 Maya trial, follow the steps again
still nothing? i try to find any thing that should be turned on in the plugin editor? then i check to make sure i am loading the python shell grabbing the latest 3.3 version. i have goggled all over to see if the issue can be resolved?
That's pretty much the situation at the present, any body having same problem or knows how i can resolve this?
please don't hesitate to reply.
cheers.
Joe
___________________________________________________________________________________________________________________
THE CODE
import maya.cmds as cmds
def UI():
#check to see if your window exists
if cmds.window("exampleUI", exists = True):
cmds.deleteUI("exampleUI")
#create our window
window = cmds.window("exampleUI", title = "Example UI", w = 300, h = 300, mnb = False, mxb = False, sizeable = False)
#show window
cmds.showWindow(window)
SCRIPT EDITOR MAYA
import exampleUI
reload(exampleUI)
exampleUI.UI()










