is it possible to write a script to backup and restore the whole set of PropertyCase set
actually i want to save the state of my camera and then restore it as a default setting - i am particularly intrested in saving the custom white balance but saving restoring multiple properties like a profile would be very convenient. i may be wrong but i did see a script posted on these line a while back(however i may be mistaken). but at that time was not intrested. ive been searching for some time but cant locate it. is there such a script posted - if so pls help me locate it. if not can someone tell me if it is not a stupid idea and will it work (with particular emphasis on the custom wb)
void save_prop_ids(){#if 0int i,fd;static char mybuf[80];char *p = mybuf;static int filenum = 1;static struct utimbuf t;t.actime = t.modtime = time(NULL);sprintf(dir,"A/CHDK/PROP_ID"); // in DCIM/SDMmkdir(dir);sprintf(fn, "%s/", dir);sprintf(fn+strlen(fn),"PROP%03d.txt",filenum); fd = open(fn, O_WRONLY|O_CREAT, 0777); // create file and open it if (fd>=0) // if created and opened OK { for(i=0;i<301;i++) // for prop cases 0 to 300 { sprintf(mybuf," "); // clear buffer sprintf(mybuf,"%3d %11d\n",i,shooting_get_prop(i)); // get property case write(fd,mybuf,16); // write to file } close(fd); // close file filenum++; } #endif}
In SDM, if you enter a certain distance (!) in one of the menus the propcases are saved to a file on half-press
is the "certain distance" a secret password or something?
See also propterycase dump and compare scripts/code linked here http://chdk.wikia.com/wiki/PropertyCase
Quote from: reyalp on 20 / August / 2011, 17:07:10See also propterycase dump and compare scripts/code linked here http://chdk.wikia.com/wiki/PropertyCaseI found a couple of options to write stuff to a file - but nothing for reading it back.
Started by GrAnd Completed and Working Scripts
Started by kdeal Feature Requests
Started by GrAnd Forum related topics (including issues)
Started by fabri22 Script Writing
Started by Microfunguy Script Writing