Here is my script. Nice and simple. It's not perfect yet and it's still being 'built, but I'm eager to learn even though as a beginner I suck more than most! :P
import maya.cmds as mc
#checking to see if window already exists and deleting to make room for new window
if mc.window('myWin', exists=True):
mc.deleteUI('myWin')
#creating new window
windowID = mc.window('myWin', rtf=True, t='StairCase', mnb=False, mxb=False, sizeable=True)
mc.columnLayout(w=400, h=600)
imagePath = mc.internalVar(userPrefDir=True) +'ícons/stairIcon.jpg'
mc.image(image=imagePath)
mc.button(l= 'Make a Step!', w=400, h=50, c='singleStair(10, 1, 2)')
mc.intSlider(h=300, w=200, step=5)
mc.showWindow('myWin')
The bold red text is the issue - when I delete it and run the script it all works fine and my window pops up with its button and slider. When I run it WITH the red text, it comes up with this error message:
#Error: UnicodeDecodeError: file <maya console> line 19: ascii
Could someone please tell me what is going on? It's driving me mad. All I want to do is have a nice image header/banner for my window.
Help me I'm DYING here.
Thanks
Kate S.