/* */

Sunday, 8 January 2012

simple window

Simple bog standard window to get the ball rolling, which begins with an if statement to check the window doesn't already exist. If this is the case, a deleteUI command is called to get rid of it.

if (cmds.window(myWindow, exists=True)):
    cmds.deleteUI( myWindow)

#Checks the window doesnt already exist, if so, it'll go ahead and delete the window and start from #scratch.

myWindow = cmds.window(title = "Slider Window", width =100, height = 200)
cmds.showWindow(myWindow)

#Creates a window withe title "Slider Window", width/height 100/200 respectively. Show window is #essential to display it on screen.

No comments:

Post a Comment