script to set zoom ,focus, iso on a3300 - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum
supplierdeeply

script to set zoom ,focus, iso on a3300

  • 28 Replies
  • 6482 Views
Re: script to set zoom ,focus, iso on a3300
« Reply #10 on: 17 / May / 2017, 23:29:52 »
Advertisements
It zoomed and captured but cant find the photos.
The script will not capture anything.  It zooms, set the ISO setting, and sets the focus.  Just like you asked for.   Photos will only happen when you fully press the shutter button or use you USB remote to take photos.

Quote
can i have script for only iso and zoom (it will autofocus right?) .and a script only with zoom i will play with the lights. with what program do you write script?
The script is very simple - I expect that you can delete / remove the lines that focus, set zoom, or set ISO on your own.

You can use any simple ASCII text editor - on Windows use notepad.exe , for Linux use emacs, vim, joe, pico, jed.  TextEdit is recommended for Mac OSX.



ok i will try to delete the right lines to keep iso and zoom

can you when it is possible see that  shutter button cant capture  usb remote give me this https://imgur.com/a/egFkg

Re: script to set zoom ,focus, iso on a3300
« Reply #11 on: 17 / May / 2017, 23:59:38 »
can you when it is possible see that  shutter button cant capture  usb remote give me this https://imgur.com/a/egFkg
I'm sorry, but that image just shows me the standard CHDK <ALT> mode screen with the really annoying "pop up" message that nobody but me thinks is a nuisance apparently.  You can turn it off with the CHDK Settings -> Menu Settings -> Show <ALT> Help Screen  menu item.

For USB remote, did you follow the setup instructions here :  USB Remote
Ported :   A1200    SD940   G10    Powershot N    G16

Re: script to set zoom ,focus, iso on a3300
« Reply #12 on: 18 / May / 2017, 12:06:45 »
can you when it is possible see that  shutter button cant capture  usb remote give me this https://imgur.com/a/egFkg
I'm sorry, but that image just shows me the standard CHDK <ALT> mode screen with the really annoying "pop up" message that nobody but me thinks is a nuisance apparently.  You can turn it off with the CHDK Settings -> Menu Settings -> Show <ALT> Help Screen  menu item.

For USB remote, did you follow the setup instructions here :  USB Remote


ok the image that pop up stopped .
 if i run the script it set the zoom, iso ,focus . if i use shutter button the script restart. if i use usb remote it restarts and if i keep pushing it shows me the last image that i captured .  if i load the script shoot.lua everything works fine. the remote parameters are enable remote------ (tick )/ switch type -----one push/control mode ------ normal

the only problem that i have with the usb remote is that i have the negative contact with the metallic part

i use chdk 1.4.1 version

if i run any script every time i press shutter button or usb remote ite restarts right?

in any case thanks for your patience
« Last Edit: 18 / May / 2017, 12:08:37 by Konos Kosmas »

Re: script to set zoom ,focus, iso on a3300
« Reply #13 on: 18 / May / 2017, 12:28:12 »
if i run any script every time i press shutter button or usb remote ite restarts right?
I understand now.  I'll post an updated script that closes CHDK <ALT> mode so that you can shoot normally after the camera starts up.   I should have thought of that in the first place.  Sorry.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: script to set zoom ,focus, iso on a3300
« Reply #14 on: 18 / May / 2017, 12:36:18 »
Updated script attached.  Setting ISO does not work though - I need to look at that when I have a few spare moments later today.  For now, you should be able to fix the value using the Canon shooting menu?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 13391
Re: script to set zoom ,focus, iso on a3300
« Reply #15 on: 18 / May / 2017, 13:06:01 »
Updated script attached.  Setting ISO does not work though - I need to look at that when I have a few spare moments later today.
Script overrides are only applied when script is running, and would only apply to the next shot.

You could set the ISO_MODE propcase, but this should probably only be done with values exposed in the Canon menu. Another option would be to use CHDK overrides with set_config_value
Don't forget what the H stands for.

Re: script to set zoom ,focus, iso on a3300
« Reply #16 on: 18 / May / 2017, 13:16:38 »
Updated script attached.  Setting ISO does not work though - I need to look at that when I have a few spare moments later today.
Script overrides are only applied when script is running, and would only apply to the next shot.

You could set the ISO_MODE propcase, but this should probably only be done with values exposed in the Canon menu. Another option would be to use CHDK overrides with set_config_value
Thanks.  I was going down the second route but I'm wondering if that's necessary at all as you can set an ISO value in the Canon shooting menu and it's permanent (i.e. stays set when the camera is turned off & on).  The intent of this script is to allow the cameras on the bookscanner to always turn on in the same desired state.  CHDK only needs to set focus and zoom for that to happen.

Revised script with no ISO setting attached.
« Last Edit: 18 / May / 2017, 13:52:01 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: script to set zoom ,focus, iso on a3300
« Reply #17 on: 18 / May / 2017, 14:09:00 »

* auto_on.lua
« Last Edit: Today at 13:52:01 by waterwingz »
this one worked perfect with usb remote and with shutter button

if i delete focus parameters in notepad will the camera auto focus ?
to go on chdk menu i press alt and then menu right?
but if i run a script how can i go back on chdk menu?
where i change iso in chdk menu ?


Re: script to set zoom ,focus, iso on a3300
« Reply #18 on: 18 / May / 2017, 14:11:15 »
Updated script attached.  Setting ISO does not work though - I need to look at that when I have a few spare moments later today.
Script overrides are only applied when script is running, and would only apply to the next shot.

You could set the ISO_MODE propcase, but this should probably only be done with values exposed in the Canon menu. Another option would be to use CHDK overrides with set_config_value

if in canon i choose P and not AUTO i can set the iso but if i run the script it automatize go to AUTO so iso value change

Re: script to set zoom ,focus, iso on a3300
« Reply #19 on: 18 / May / 2017, 14:16:44 »
* auto_on.lua
« Last Edit: Today at 13:52:01 by waterwingz »
this one worked perfect with usb remote and with shutter button
8)

Quote
if i delete focus parameters in notepad will the camera auto focus ?
Yes.

Quote
to go on chdk menu i press alt and then menu right?
Yes.

Quote
but if i run a script how can i go back on chdk menu?
When the auto_on.lua script finishes, it closes <ALT> mode so that you can shoot with the shutter button or USB remote.  You can go back into <ALT> and the CHDK menu by pressing the ALT key and then the MENU key.

Quote
where i change iso in chdk menu ?
You can set ISO in the CHDK Enhanced Photo Operations menu.   However, I would recommend setting it in the Canon shooting menu instead of the CHDK menu.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics