TB1 Week 3
Programming for Animation » Devlog
this week we learnt how to make a window with buttons that have a function the code need for this is:
window = cmds.window( title="Long Name", iconName='Short Name', widthHeight=(200, 55) )
cmds.columnLayout( adjustableColumn=True )
cmds.button( label='Do Nothing' )
cmds.button( label='Close', command=('cmds.deleteUI(\"' + window + '\", window=True)') )
cmds.setParent( '..' )
cmds.showWindow( window )
this makes a GUI appear that you can add functions to the buttons to do many different things, you need to add
"cmds.showWindow( window )" or the window will not be visible
Programming for Animation
Status | In development |
Author | TheWigum |
More posts
- TB1 Week 9Dec 12, 2022
- TB1 Week 8Dec 12, 2022
- TB1 Week 7Dec 11, 2022
- TB1 Week 5Dec 11, 2022
- TB1 Week 4Dec 10, 2022
- TB1 Week 2Oct 10, 2022