In my other thread https://chdk.setepontos.com/index.php?topic=12921.0 I said...
Is there a "known best/fastest" way to do these brackets in a script?
Otherwise, I guess I'll just be googling the archive.
EDIT; Am I wasting my time continuing to work in uBasic? It appears that Lua is where the develpement is most active now.
In case people think I'm just complaining, I'm not.
Quote from: bugbear on 16 / July / 2016, 03:17:07In my other thread https://chdk.setepontos.com/index.php?topic=12921.0 I said...Now that you mention it, I should point out that CHDK forum etiquette is to not start multiple new threads on what is basically the same topic (in this case, your focus stacking project).
Apologies - on other forums I'm used to one question per thread, not one project per thread.I shall continue in this thread, (and follow up all the other helpful links/answers you posted, thank you).
I'm bound to struggle with syntax to start with; is there a Linux resident Lua interpreter/environment where I could at least get my syntax checked before I load to a card for actual use/testing?
function print_tv(val)function print_av(val)function print_sv(val)
av_ref = { 160, 176, 208, 243, 275, 304, 336, 368, 400, 432, 464, 480, 496, 512, 544, 592, 624, 656, 688, 720, 752, 784 }av_str = {"n/a","1.8", "2.0","2.2","2.6","2.8","3.2","3.5","4.0","4.5","5.0","5.6","5.9","6.3","7.1","8.0","9.0","10.0","11.0","13.0","14.0","16.0","hi"}function print_av(val) if ( val == nil ) then return("-") end local i = 1 while (i <= #av_ref) and (val > av_ref[i]) do i=i+1 end return av_str[i]end
(had to google that, no Links in the Wiki)
I assume these have now been obsoleted by av96_to_aperture (although reading the spec, that returns f-stop * 1000, not a nice "F stop name" per your code above).
What's current (2016!!) best-practice?
Started by jonnythe « 1 2 ... 25 26 » Script Writing
Started by yunxiang AllBest's Builds
Started by P373 Script Writing
Started by galocza General Discussion and Assistance
Started by ThatGuyOverThere General Discussion and Assistance