View Full Version : ini files, saving spinner and radiobutton info help

07 July 2011, 04:53 AM
Hi, I've successfully managed to add an ini file to save the input and output using
try(browse_max_label.text = (getINISetting theINI "Lukes Tools" "max_dir"))catch()
try(setINISetting theINI "Lukes Tools" "max_dir" (max_dir as string))catch()
on browse_max pressed do
max_dir = getSavePath initialDir:(getDir #scene)
browse_max_label.text = (max_dir as string)
as a part of my code.
I'm now adding a lot more features to the script and would like to know how I
would store the settings for a spinner or radiobuttons.
I'm sure ths is not too difficult but my methodology usually gets an undefined so
I would appreciate any code snippet and all the help I can get

07 July 2011, 10:55 AM
try setIniSetting ("$plugcfg\\settings.ini") "Settings" "BigSpn" ( daBigSpn.value as string ) Catch()
bigspnv = execute (getIniSetting ("$plugcfg\\settings.ini") "Settings" "BigSpn")
try if ( bigspnv != OK and classof bigspnv == integer ) then daBigSpn.value = bigspnv Catch()

07 July 2011, 12:00 PM
Thanks I'll implement it tomorrow

CGTalk Moderation
07 July 2011, 12:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.