Message 1 of 6
I need your help to create a AutoSave toggle UI, either python(cmds) or mel would be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi! everyone.
I just created the UI using only python cmds. I am new to creating UI with commands, so please let me know if there is anything I should implement. The image above is the concept of the UI, and the image below is the actual UI I created.
it's a concept picture.
what I made.
I am unhappy with the UI.
- The UI does not line up nicely.
- I would like to implement the ability to make the button icon for textFieldButtonGrp a folder icon and open the user's folder when clicked.
Also, how do I connect autosave commands to the UI? Do I have to use def?
# autosaveChangeUI
import maya.cmds as cmds
window = cmds.window( t = 'autosaveChangeUI' )
cmds.columnLayout( adj = True )
cmds.frameLayout( label='AutoSave' )
cmds.checkBox( label = 'Enable' )
cmds.checkBox( label = 'Prompt before save' )
cmds.checkBox( label = 'Limit autosaves' )
cmds.intSliderGrp( f = True, l = 'Number of autosaves:', min = 0, max = 10, fmn = 0, fmx = 9999, v = 10 )
cmds.intSliderGrp( f = True, l = 'Interval (minutes):', min = 0, max = 10, fmn = 0, fmx = 60, v = 10 )
cmds.radioButtonGrp( l = 'Autosave destination:', la3 = [ 'Project', 'Named folder', 'Env Var' ], nrb = 3 )
cmds.textFieldButtonGrp( l = 'Label', bl = 'Button' )
cmds.showWindow( window )
Thanks.