hackerdude
April 14th, 2009, 03:02 PM
I have a more or less working plugin now, and I am trying to save settings. I have something similar to the following:
import mc
config = mc.GetApp().GetLocalConfig()
test_info = config.GetValue("test_info")
print "Test Info: " + test_info
Later on..
test_info = mc.ShowDialogKeyboard('Some Text', '', 0)
config.Reset('test_info')
config.SetValue("test_info", test_info)
On the log, I get this when SetValue gets called:
CreateDirectory, cant create dir <>. trying lower case
And the value is not on the next call of GetValue.
I'm sure I'm just not setting the filename, but I don't see where to do it on the docs. Can anybody help?
Thanks!
import mc
config = mc.GetApp().GetLocalConfig()
test_info = config.GetValue("test_info")
print "Test Info: " + test_info
Later on..
test_info = mc.ShowDialogKeyboard('Some Text', '', 0)
config.Reset('test_info')
config.SetValue("test_info", test_info)
On the log, I get this when SetValue gets called:
CreateDirectory, cant create dir <>. trying lower case
And the value is not on the next call of GetValue.
I'm sure I'm just not setting the filename, but I don't see where to do it on the docs. Can anybody help?
Thanks!