Changing many settings quickly/override presets - Script Writing - CHDK Forum

Changing many settings quickly/override presets

  • 10 Replies
  • 4051 Views
*

Offline foton

  • *
  • 14
Changing many settings quickly/override presets
« on: 21 / February / 2012, 20:59:20 »
Advertisements
I am using CHDK for a long time now and I found it very useful. In fact I am using canon cameras mainly because there is CHDK available for them.

As I am always using CHDK I am changing override settings very often. However usually I use a few combinations of settings – unfortunately switching between them require “a lot” of time. Is it possible to create some quick presets? Is it possible to include in them native/manufacturer camera settings as well?

EDIT:bolded
« Last Edit: 22 / February / 2012, 10:48:36 by foton »

Re: Changing many settings quickly/override presets
« Reply #1 on: 21 / February / 2012, 21:12:07 »
I am using CHDK for a long time now and I found it very useful. In fact I am using canon cameras mainly because there is CHDK available for them.

As I am always using CHDK I am changing override settings very often. However usually I use a few combinations of settings – unfortunately switching between them require “a lot” of time. Is it possible to create some quick presets? Is it possible to include in them camera settings as well?
What you probably want does not exist - some simple way to save a particular CHDK setup and then restore it quickly.  Here's a couple of things you can try though.

1)  Create a User Menu with links to the setting you change most frequently and then enable "User Menu as Root".

2) Setup the camera exactly the way you want and then copy the CCHDK.CFG file from the SD card to somewhere safe with a unique name.  Repeat for each setup you need.  You can then copy that file back to the SD card (renaming to CCHDK.CFG) each time you want to use that setting.

3) Follow the steps above but put each CCHDK.CFG file on a different SD card.  2G and 4G SD cards are inexpensive now - swapping cards could be the fasted way possible to swap setups ?

None of these options are ideal. Maybe someone has a better idea ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline fe50

  • ******
  • 3132
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Changing many settings quickly/override presets
« Reply #2 on: 22 / February / 2012, 01:30:50 »

*

Offline reyalp

  • ******
  • 13387
Don't forget what the H stands for.


*

Offline msl

  • *****
  • 1276
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Changing many settings quickly/override presets
« Reply #4 on: 22 / February / 2012, 05:16:47 »
This script saves and restores up to 10 CHDK configurations: http://trac.assembla.com/chdkde/browser/trunk/CHDK/SCRIPTS/USER/conf_rw.lua

The script is easy to use and detects automatically the camera OS language (atm. only German and English).

Note: The script or the command get/set_config_value() can only handle configuration data which are contained in static const ConfInfo conf_info[].

msl
CHDK-DE:  CHDK-DE links

*

Offline foton

  • *
  • 14
Re: Changing many settings quickly/override presets
« Reply #5 on: 22 / February / 2012, 10:47:19 »
This script saves and restores up to 10 CHDK configurations: http://trac.assembla.com/chdkde/browser/trunk/CHDK/SCRIPTS/USER/conf_rw.lua

The script is easy to use and detects automatically the camera OS language (atm. only German and English).

Note: The script or the command get/set_config_value() can only handle configuration data which are contained in static const ConfInfo conf_info[].

msl
Thank You.
I installed it and it works fine. Is it possible to manage presets with native/manufacturer camera settings?
« Last Edit: 22 / February / 2012, 12:00:51 by foton »

*

Offline reyalp

  • ******
  • 13387
Re: Changing many settings quickly/override presets
« Reply #6 on: 22 / February / 2012, 16:01:38 »
I installed it and it works fine. Is it possible to manage presets with native/manufacturer camera settings?
You would to write a script that sends the appropriate key strokes to set the settings.

It would be fairly trivial to expose set_parameter_data in lua, but this involves (indirectly) writing to camera flash. Given that people have had trouble with corrupted params (not necessarily caused by chdk) I would be reluctant to enable this.
Don't forget what the H stands for.

*

Offline dvip

  • ****
  • 451
Re: Changing many settings quickly/override presets
« Reply #7 on: 22 / February / 2012, 21:31:24 »
It would be neat to have on the user's menu something
that works like the C1, C2, etc... that you find on some camera's dial. 
A quick way to change chdk settings but for now scripts are the closest way to do this.


*

Offline foton

  • *
  • 14
Re: Changing many settings quickly/override presets
« Reply #8 on: 23 / February / 2012, 08:10:58 »
I installed it and it works fine. Is it possible to manage presets with native/manufacturer camera settings?
You would to write a script that sends the appropriate key strokes to set the settings.

It would be fairly trivial to expose set_parameter_data in lua, but this involves (indirectly) writing to camera flash. Given that people have had trouble with corrupted params (not necessarily caused by chdk) I would be reluctant to enable this.
Thank you for your answer.
I have a few more questions:
1. As for now scripts with set_parameter_data are not working, are there?
2. Is it possible to use set_prop for temporal effect until camera reboot?
3. My SD950 IS 1.00d llibtst.log reports errors: http://pastebin.com/rpQDZYSL . Is it ok, to use lua scripts on it?
NOTE: I never wrote CHDK script myself.

*

Offline reyalp

  • ******
  • 13387
Re: Changing many settings quickly/override presets
« Reply #9 on: 23 / February / 2012, 16:49:33 »
1. As for now scripts with set_parameter_data are not working, are there?
The command does not currently exist, only get_parameter_data does. The corresponding Canon function to set is known, so it wouldn't be terribly hard to implement.
Quote
2. Is it possible to use set_prop for temporal effect until camera reboot?
Not unless the particularly propertycase involved already behaves that way.
Quote
3. My SD950 IS 1.00d llibtst.log reports errors: http://pastebin.com/rpQDZYSL . Is it ok, to use lua scripts on it?
I don't see any failures in that log. Where it says, e.g.
os.utime("A/bogus",nil,nil): ERR A/bogus: error PASS
that means the error was expected so the test passed. If there hadn't been an error, then the test would have failed. The script outputs whether there have been any failures.

Running lua scripts should be as safe as anything else using CHDK.
Don't forget what the H stands for.

 

Related Topics