How to convert my script to ALLBEST? - AllBest's Builds - CHDK Forum

How to convert my script to ALLBEST?

  • 7 Replies
  • 3770 Views
How to convert my script to ALLBEST?
« on: 28 / March / 2008, 19:42:40 »
Advertisements
I followed the scripting tutorial on the wiki and here is my code segment for the ixus70_sd1000  but I need to know how to make it work with ALLBEST

:set_shutter
get_tv t
print "Tv set to",t
wait_click
  is_key k "set"
    if k=1 then goto "k_set"
  is_key k "down"
    if k=1 then set_tv_rel 0-1
k=0
  is_key k "up"
    if k=1 then set_tv_rel 0+1
k=0
goto "set_shutter"


:k_set
.........


on the console
I see the t value vary up and down correctly but the shutter speed doesnt seem to change

please help

Re: How to convert my script to ALLBEST?
« Reply #1 on: 28 / March / 2008, 20:06:19 »
Deleted
« Last Edit: 22 / April / 2008, 15:26:12 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

Re: How to convert my script to ALLBEST?
« Reply #2 on: 28 / March / 2008, 21:55:49 »
Barney Fife
Hi, Barney! Not quite so. Allbest build is fully compatible with all previous builds. Only one exception is "set_iso_dangerous" command

Re: How to convert my script to ALLBEST?
« Reply #3 on: 28 / March / 2008, 22:02:18 »
smurf
Hi! This script doesn't work on your IXUS because IXUS hasn't Tv mode (set_tv and other commands in this script works ONLY in TV or M modes). You need to use another commands. set_tv96, for example


Re: How to convert my script to ALLBEST?
« Reply #4 on: 28 / March / 2008, 22:10:37 »
Hi Allbest,

do you have descriptions for set_tv96 etc?


Re: How to convert my script to ALLBEST?
« Reply #5 on: 29 / March / 2008, 01:41:00 »
Deleted
« Last Edit: 22 / April / 2008, 15:26:32 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

Re: How to convert my script to ALLBEST?
« Reply #6 on: 29 / March / 2008, 21:39:27 »
do you have descriptions for set_tv96 etc?
Hi!
The Initial description and common logic you can see here CHDK firmware usage/AllBest - CHDK Wiki

"Ixus compatible" version of your script:
Code: [Select]

@title Shutter TEST

sleep 500

rem initiation

press "shoot_half"
release "shoot_half"


get_tv96 t

:set_shutter

print "Tv set to",t

wait_click
  is_key k "set"
    if k=1 then goto "k_set"
  is_key k "down"
    if k=1 then t=t-32
k=0
  is_key k "up"
    if k=1 then t=t+32
k=0

set_tv96_direct t

goto "set_shutter"

:k_set

shoot

end


The Basic comand set_tv96_direct is most universal for shutter speed operations. This command sets tv value in APEX standart: APEX system - Wikipedia, the free encyclopedia. Not a float value but integer with 96 multiplier, i.e. tv*96
Correspondingly get_tv96 returns current value of tv*96

Analogously for aperture operations you can use basic commands "set_av96_direct" and "get_av96" (but Ixus hasn't iris mechanism). Use command "set_nd_filter" as alternative


Quote
Good luck trying to get them to explain ANY of the new uBASIC commands
Barney, if you don't know how to help the best variant is keep silent
« Last Edit: 30 / March / 2008, 07:06:12 by Allbest »

Re: How to convert my script to ALLBEST?
« Reply #7 on: 29 / March / 2008, 22:02:17 »
Allbest,

Thank you kind sir!

I will give it my best shot
 ;)
best,

Smurf


 

Related Topics