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.
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/d2c114ec-2eca-48a3-bc8c-4bf3dbb32e90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.