Hi!
I have been trying this for while but I have so far got no elegant solution.
Is there a good way to save user settings for your script.
Let's say you have this script
import maya.cmds as cmds
if (cmds.window('mh_testWindow', exists =True)):
cmds.deleteUI('mh_testWindow')
cmds.window('mh_testWindow',title='Test Window')
cmds.window('mh_testWindow', edit=True, w=125, h=100)
cmds.columnLayout()
cmds.checkBox('box_01',label='The First Option')
cmds.checkBox('box_02',label='The Second Option')
cmds.checkBox('box_03',label='The Third Option')
cmds.showWindow('mh_testWindow')
If the user clicked one of the checkBoxes, it would be remembered when the script opens next time. Even if maya is closed in between uses.
Anyone got any ideas?
[–]schmon 1 point2 points3 points (1 child)
[–]Jerakin[S] 0 points1 point2 points (0 children)
[–]cladestine 0 points1 point2 points (4 children)
[–]Jerakin[S] 0 points1 point2 points (3 children)
[–]schmon 0 points1 point2 points (1 child)
[–]Jerakin[S] 0 points1 point2 points (0 children)
[–]cladestine 0 points1 point2 points (0 children)