Script command to change camera mode (i.e. Av, Tv, Manual, Program, Auto, SCN) - Script Writing - CHDK Forum

Script command to change camera mode (i.e. Av, Tv, Manual, Program, Auto, SCN)

  • 2 Replies
  • 2201 Views
Advertisements
Hi,

is there a script command that (the command) can change the camera mode? I.e. so the camera would switch from Av mode to Manual mode?
My camera (a590) can't change the Av value  through set_av if the camera is in Tv mode. I was curious if I can change the mode directly through a script rather than using the small clicking wheel on the top of my camera.
The question is purely out of curiosity, as it is enough to switch the camera to the Manual Mode prior to running all scripts.
Camera modes: Av, Tv, Manual, Program, Auto, Scene (SCN)
Variables affected by the modes: set_av, set_tv, set_focus, other.

Regards.

*

Offline reyalp

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

reyalp: that's nice! I have to switch to lua as lua is much more powerful than uBasic.

uBasic script: (a590 IS)
Code: [Select]
@title Chk if DIAL Mode is manual
get_prop 49 p
if p <> -32767 then
  print "Switch the camera to the"
  print "Manual mode first."
  goto "end"
endif
print "Executing the script."

:end
end

 

Related Topics