Landscape Focus Bracketing Script - page 23 - Completed and Working Scripts - CHDK Forum

Landscape Focus Bracketing Script

  • 235 Replies
  • 23256 Views
Re: Landscape Focus Bracketing Script
« Reply #220 on: 09 / August / 2021, 01:38:28 »
Advertisements
@philmoz

Assuming I've understood you, could you look at the following and confirm all is OK and fill in the ??? ?? address for 121a

Code: [Select]
function lens_name()
    local pname = 0
    if (bi.platsub == "120f") then
        pname = 0x002449ad
    elseif (bi.platsub == "101a") then
        pname = 0x00244969
    elseif (bi.platsub == "121a") then
        --pname =?
    end
    local len = peek(pname-1,1)
    local i = 0
    local t = {}
    while i < len do
        local c = peek(pname + i, 1)
        if c == 0 then break end
        table.insert(t, string.char(c))
        i = i + 1
    end
    local name = table.concat(t)
    return name
end

Once again, thanks for all your support.

Cheers

Garry
« Last Edit: 09 / August / 2021, 02:00:00 by pigeonhill »

*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: Landscape Focus Bracketing Script
« Reply #221 on: 09 / August / 2021, 02:13:34 »
Assuming I've understood you, could you look at the following and confirm all is OK and fill in the ??? ?? address for 121a



121a is the same as 120f which is why I wrote the code the way I did - 101a is the odd one out.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Landscape Focus Bracketing Script
« Reply #222 on: 09 / August / 2021, 02:16:17 »
Quote
121a is the same as 120f which is why I wrote the code the way I did - 101a is the odd one out.

I was always taught to never trust Microsoft  :), it now looks like I need to also say, never trust Canon ::)

Cheers

Garry

Re: Landscape Focus Bracketing Script
« Reply #223 on: 09 / August / 2021, 02:23:56 »
@c_joerg

Thanks to @philmoz I've updated the script and hopefully it should run on all M3 CHDK versions.

As mentioned in the post on my blog, I've also changed the code to be accessed by non-EFM lenses, albeit only in exposure bracketing or survey modes. You can also auto ETTR a non-EFM lens.

I would welcome you confirming the script runs OK.

Download the latest script version from my blog link.

Cheers

Garry


*

Offline c_joerg

  • *****
  • 1151
Re: Landscape Focus Bracketing Script
« Reply #224 on: 09 / August / 2021, 02:54:20 »
Forgot to say, you need to load the philmoz XIMR version

At the moment I would not like to change the CHDK Version of my M3.
What happens if you don't use the philmoz version?
M100 100a, M3 101a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Landscape Focus Bracketing Script
« Reply #225 on: 09 / August / 2021, 02:58:07 »
Quote

What happens if you don't use the philmoz version?


The script wouldn’t work and/or crash.

Use a separate card ;)

Cheers

Garry
« Last Edit: 09 / August / 2021, 03:57:40 by pigeonhill »

*

Offline c_joerg

  • *****
  • 1151
Re: Landscape Focus Bracketing Script
« Reply #226 on: 09 / August / 2021, 05:26:58 »
Use a separate card ;)
I already have so many SD cards with different versions ;)
Give me time...

M100 100a, M3 101a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Landscape Focus Bracketing Script
« Reply #227 on: 15 / August / 2021, 10:30:56 »
Some may be interested in the latest tweak to the M3 LBS.

You can now select to use the lower, upper or harmonic mean of the focus distance, and register non-EF-M lenses.

https://photography.grayheron.net/2021/08/m3-landscape-bracketing-script-where.html


*

Offline Caefix

  • *****
  • 602
  • Sorry, busy deleting test shots...
Re: Landscape Focus Bracketing Script
« Reply #228 on: 16 / August / 2021, 13:55:30 »
...register non-EF-M lenses.
Need or how to include cropfactor?  ???
Code: [Select]
    elseif lens_name() == "EF-M22mm f/2.0 MACRO STM" then
        Fmax = 22000 -- Longest focal length (mm) * 1000
        Mmax = 217 -- Max magnification * 100
        MFD = 150 -- Minimum Focus Distance in mm
        t = hiatus() -- distance between front and rear principals
        return true
    elseif lens_name() == "EF-M18-150mm f/3.5-6.3 IS STM" then
        Fmax = 150000 -- Longest focal length (mm) * 1000
        Mmax = 259 -- Max magnification * 100
        MFD = 450 -- Minimum Focus Distance in mm
        t = hiatus() -- distance between front and rear principals
        return true
    elseif lens_name() == "EF-S18-200mm f/3.5-5.6 IS" then
        Fmax = 320000 -- Longest focal length (mm) * 1000
        Mmax = 592 -- Max magnification * 100
        MFD = 450 -- Minimum Focus Distance in mm
        t = hiatus() -- distance between front and rear principals
        return true
« Last Edit: 16 / August / 2021, 14:38:01 by Caefix »
All lifetime is a loan from eternity.

Re: Landscape Focus Bracketing Script
« Reply #229 on: 16 / August / 2021, 15:30:33 »
Quote
Need or how to include cropfactor?

No you don’t  :)

The script is controlled by specifying the overlap blur in microns.

 

Related Topics