Best resource to learn about on screen 'printing', ie not console - General Discussion and Assistance - CHDK Forum supplierdeeply

Best resource to learn about on screen 'printing', ie not console

  • 6 Replies
  • 1398 Views
Advertisements
Withdrawn
« Last Edit: 18 / January / 2020, 09:38:47 by pigeonhill »

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 12638
Re: Best resource to learn about on screen 'printing', ie not console
« Reply #2 on: 18 / January / 2020, 16:03:06 »
For completeness, my response to a PM
I’ve decided to do the first version of the script I’m about to start only using the console, but I seem to have a major limitation.

If I exit alt mode, I seem to lose the console for feedback.

Is there any way to keep the console live and exit alt mode.
In CHDK menu->miscellaneous->console set "show console" to always.

Separately, you may wish to adjust the timeout.

You can adjust these from script with set_config_value() if needed.

Alternatively, I think you could use the drawing functionality:
https://chdk.fandom.com/wiki/Lua/Lua_Reference#Drawings
Don't forget what the H stands for.

Re: Best resource to learn about on screen 'printing', ie not console
« Reply #3 on: 18 / January / 2020, 17:46:07 »
@waterwingz  @reyalp

Thanks for the info.

Have made progress today and will post new script soon.

For this version I've decided to exploit the console approach, rather than screen printing/drawing.

I've tested the script on my G1X and G7X and it works well.

The script, called DOFIC, Depth Of Field Info CHDK, is a focus aid for landscape photography etc. it augments the standard CHDK dof info,

It tells you the infinity defocus blur, the diffraction blur, the quadrature total of these, the number of brackets needed for focus stacking, where you are relative to the hyperfocal and whether you have a focus gap or overlap relative to the last image taken.

It provides all the above info in a very compact form, eg (but not real numbers)

3>H: 32/9/33 [=]

The above meaning that you will need to take about 3 images from your current position to focus bracket to the hyperfocal, the current position is giving you a defocus blur at infinity of 32 microns, the diffraction blur is 9 microns, the total is 33 microns and, relative to the last image taken, we are at the same focus as the last image taken.

Once you have reached the hyperfocal, you then continue to use DOFIC to provide you the focus info to nail your infinity blur.

When I publish the script I'll also write up the workflow I use.

Cheers

Garry
« Last Edit: 18 / January / 2020, 17:57:59 by pigeonhill »


Re: Best resource to learn about on screen 'printing', ie not console
« Reply #4 on: 19 / January / 2020, 01:49:51 »
@reyalp

I'm nearly there  ;)

The last hurdle is trying to get set_config_value to work, eg switch the console to be always on or switch it back to alt mode.

I'm using this line of Lua code:

Code: [Select]
set_config_value(270,0)
I've tried 0 and 1, but nothing changes, and that config only has two states.

Can you put me out of my misery please  ;)

*

Offline reyalp

  • ******
  • 12638
Re: Best resource to learn about on screen 'printing', ie not console
« Reply #5 on: 19 / January / 2020, 02:30:41 »
@reyalp

I'm nearly there  ;)

The last hurdle is trying to get set_config_value to work, eg switch the console to be always on or switch it back to alt mode.

I'm using this line of Lua code:

Code: [Select]
set_config_value(270,0)
I've tried 0 and 1, but nothing changes, and that config only has two states.

Can you put me out of my misery please  ;)
270 isn't the ID, it's 2270 (or 296 in the 1.2 compatible scheme)

I'd suggest using the cnf_ modules to get the ID
Code: [Select]
cnf_osd=require'gen/cnf_osd'
set_config_value(cnf_osd.console_show,0)
Don't forget what the H stands for.

Re: Best resource to learn about on screen 'printing', ie not console
« Reply #6 on: 19 / January / 2020, 02:38:10 »
@reyalp

Many thanks!  :)

 

Related Topics