Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - garry23

Pages: 1 ... 3 4 [5] 6 7 ... 89
101
Scripting Q&A / Re: Full shutter press and event handler
« on: January 25, 2021, 12:33:05 PM »
@Danne

Good point and I’ll try and remember to do this in the future ;-)

Regarding my Lua scripting, as you know I script for myself, but freely share on this forum for others to use as they see fit.

I have no idea if others are using Lua like I do, ie to help with photography. I see a lot of video stuff, but not that much photography related discussion.

As I’ve said before, I think Lua scripting is the star in ML.

Cheers and stay away from the (mutating) pestilence and (increasing) stupidity in the world

Garry

102
Scripting Q&A / Full shutter press and event handler
« on: January 25, 2021, 10:39:35 AM »
@a1ex

Forgive me if this has been asked by someone before, especially by me  :) ;)

When using the keypress event handler, I can’t seem to hijack the full shutter and unpress full shutter, ie even when I return false, the shutter still operates, both in LV and non LV mode.

Is there a way in Lua to hijack the Canon full shutter?

Cheers

Garry

103
Camera Emergency Department / Re: 60D not turning on.
« on: January 25, 2021, 08:38:29 AM »
A real hardware bug!  ;)  :)

104
Scripting Corner / Re: MUlti Shot Image Capture script
« on: January 24, 2021, 02:50:12 PM »
In this post I've added two new features to MUSIC: https://photography.grayheron.net/2021/01/music-now-with-use-case-ui.html

A new dynamic UI, based on 6 use cases, and (optimum) handheld exposure bracketing.


105
Scripting Q&A / Re: Key event handler and ETTR
« on: January 22, 2021, 03:28:41 PM »
@a1ex

You really know how to embarrass someone  :) :) :)

Your memory is phenomenal!

I have a workaround.

Fully understand this is not a priority matter, especially for you.

Cheers and stay safe

Garry

106
Scripting Q&A / Key event handler and ETTR
« on: January 22, 2021, 02:00:23 PM »
@a1ex

In the script I'm playing with I wish to hijack the SET and UNPRESS_SET keys, so I can use these with a long press, ie use normally if the press/unpress is less that x seconds, or use differently if longer than x seconds.

All is OK, other than the ETTR remains triggered by a SET, no matter what I do.

That is, the ETTR triggered by SET seems to circumvent the key event handler, eg if I use the following, ETTR still triggers off of SET:

Code: [Select]
if kk == KEY.SET or kk== KEY.UNPRESS_SET then
    return false
end

Is this intentional or a 'bug'?

Cheers

Garry

107
Scripting Corner / Re: MUlti Shot Image Capture script
« on: January 21, 2021, 09:33:42 AM »
A few words on camera compatibility and MUSIC: https://photography.grayheron.net/2021/01/music-camera-compatability.html

Bottom line: MUSIC, and DOFIS, will run on any camera, but there are a couple of things to look out for.

108
Scripting Corner / Re: MUlti Shot Image Capture script
« on: January 20, 2021, 05:43:03 PM »
In this post, I'm releasing a silent exposure bracketing feature in MUSIC:

https://photography.grayheron.net/2021/01/music-exposure-bracketing-with-frsp.html

As usual I welcome any feedback to make MUSIC 'better'.

109
Scripting Corner / Re: MUlti Shot Image Capture script
« on: January 19, 2021, 12:37:01 PM »
Just a quick 'background' post for those using MUSIC: https://photography.grayheron.net/2021/01/le-photography-benifits-of-simulation.html

110
Scripting Q&A / Re: ISO strangeness
« on: January 19, 2021, 10:34:56 AM »
@a1ex

Thanks for confirming. For a while I thought I was going mad, then, last night, as I was in bed thinking about it, I wondered if the exposim or expo override was the issue.

May I assume the bug is registered now?

Cheers

Garry

111
Scripting Q&A / Re: ISO strangeness
« on: January 19, 2021, 08:43:13 AM »
@a1ex

I had a thought and just tested it out and now can trigger the error.

If only ExpSim is enabled all is OK.

If I also enable Expo Override, then the error occurs, ie I can't control ISO via Lua.

I don't under why this is occurring, but at least I can circumvent it by not playing around with ISO if I also need Expo Override!

112
Scripting Q&A / Re: ISO strangeness
« on: January 18, 2021, 10:55:10 PM »
Bugger: why doesn't the image show!!!!!!

Here is the link: https://ibb.co/G7FXWbF

Fixed  :)

113
Scripting Q&A / Re: ISO strangeness
« on: January 18, 2021, 10:53:59 PM »
@a1ex

I'm still nowhere with this ISO strangeness.

I have the latest Lua running on my 5D3 in M mode.

I have deleted all scripts bar this test script:

Code: [Select]
--ISO Test
t = camera.iso.value
menu.close()
sleep(1)
camera.iso.value = 800
display.notify_box("iso="..t, 3000)
sleep(3)
camera.iso.value = t

The script fails with this message:

image0" border="0

Can you see the error of my ways?

Cheers

Garry


114
Scripting Corner / Re: MUlti Shot Image Capture script
« on: January 18, 2021, 04:57:04 PM »
I'm pleased to announce that MUSIC now has an FRSP feature.

This post explains how MUSIC uses FRSP: https://photography.grayheron.net/2021/01/music-now-for-those-with-senstive.html

115
Scripting Q&A / Re: ISO strangeness
« on: January 17, 2021, 01:51:15 PM »
In the end I 'just' did a complete reinstall of the latest Lua_fix and all now seems OK.

As I say, strange.

116
Scripting Q&A / Re: ISO strangeness
« on: January 17, 2021, 12:59:05 PM »
Well I'm mystified, but that's easy :-)

Here is the point of failure, that generates the traceback error:

Code: [Select]
local iso_b = camera.iso.apex
local temp = camera.shutter.ms
local stop = MUSIC_menu.submenu["Number of images?"].value
if MUSIC_menu.submenu["Bookends?"].value == "yes" then stop = stop + 2 end
for i = 1,stop do
if (i == 1 or i == stop) and MUSIC_menu.submenu["Bookends?"].value == "yes" then -- tweak shutter and ISO for first and last images in bracket set
camera.shutter.ms = 1
camera.iso.apex = 10 --FAILS HERE!!!!!!!!
else
camera.iso.apex = iso_b
camera.shutter.ms = temp
end
my_shoot()
msleep(MUSIC_menu.submenu["I2I Delay"].value * 1000)
if MUSIC_menu.submenu["Focus shift mode"].value ~= "None"  then
check_lens_ready() -- just in case
lens.focus(dir,step,true) -- move lens
check_lens_ready() -- just in case
lens.focus(-dir,step,true) -- move back
end
end
camera.shutter.ms = temp
camera.iso.apex = iso_b
display.notify_box("Script Finished Running", 3000)
else -- something is wrong
display.notify_box("Switch on LV", 3000)
end


117
Scripting Q&A / Re: ISO strangeness
« on: January 17, 2021, 12:37:36 PM »
@a1ex

API test fails here:

Testing picture taking functions...
Snap simulation test...
Single picture...
A:/DCIM/103EOS5D/2P6A0508.CR2 not found.
A:/DCIM/103EOS5D/2P6A0508.JPG not found.

ML/SCRIPTS/API_TEST.LUA:1062: assertion failed!
stack traceback:
   [C]: in function 'assert'
   ML/SCRIPTS/API_TEST.LUA:1062: in function 'test_camera_take_pics'
   ML/SCRIPTS/API_TEST.LUA:1574: in function <ML/SCRIPTS/API_TEST.LUA:1564>
   [C]: in function 'xpcall'
   ML/SCRIPTS/API_TEST.LUA:1564: in function 'api_tests'
   ML/SCRIPTS/API_TEST.LUA:1603: in main chunk

118
Scripting Q&A / Re: ISO strangeness
« on: January 17, 2021, 12:32:23 PM »
Looks like one of my scripts is creating the problem :-(

If I only run API test all looks OK :-(

But which script I wonder?

Time to test!!!!

119
Scripting Q&A / Re: ISO strangeness
« on: January 17, 2021, 12:28:30 PM »
@a1ex

Using latest Lua fix on 5D3 123.

Shutter and aperture all OK.

Reading ISO is OK.

Just tried running the API test script and got error "Not enough memory" ???????

120
Scripting Q&A / ISO strangeness
« on: January 17, 2021, 12:11:21 PM »
I've convinced myself that setting ISO values via Lua 'may' be broken.

I can use camera.iso.apex or camera.iso.value etc to read, eg x = camera.iso.apex; but if I use something like camera.iso.apex = 10 I get 'failed stack traceback' error.

Has anyone else come across this?

121
Modules Development / Re: Full-resolution silent pictures (silent.mo)
« on: January 16, 2021, 10:52:51 AM »
@a1ex

Quote
Answered in reply #1086.

Sorry, I was trying to be specific to the opacity adjustment approach and using pairwise summation via (a+b)/2.

I'll stop posting on this now  ;)

Cheers

Garry

122
Modules Development / Re: Full-resolution silent pictures (silent.mo)
« on: January 16, 2021, 10:36:18 AM »
@a1ex

Thanks for the education :-)

Do you think the idea, ie adjusting each image's opacity and summing is achievable?

Or is the idea dead on the starting block?

Cheers

Garry

123
Modules Development / Re: Full-resolution silent pictures (silent.mo)
« on: January 16, 2021, 09:45:03 AM »
@IDL@ML

Quote
How does the number of merged images relate to the number of ND stops with this simple (a+b)/2 median merging method? 

With this approach one is not trying to emulate the number of ND stops, but the shutter time. We use ND filters to control time. With this approach 'any' LE becomes a 'simple' matter of dialing in the number.

The number of images to take is know, ie if the LE time you are seeking to emulate it T and the shutter time is t, then the number of images yuo will need is simply T/t.

@a1ex

Quote
That's the arithmetic mean, and it's quite different from median.

My ignorance. I simply used this: https://www.mathsisfun.com/median.html, and because my idea is to only 'process' two images at a time, the maths becomes easy (a+b)/2.

I'm still thinking how we merge multiple stacks of images in Photoshop is the way to make this work.

In the PS merge multiple images approach, eg https://photography.grayheron.net/2018/04/post-processing-simulated-le-brackets.html, one adjust the opacity of each layer by an amount. Thus, in a four layer stack, the image opacity values for each layer would be (top to bottom), 1/4, 1/3, 1/2. 1/1. These layers are then simply merged, which in my naivety I thought was pairwise (a+b)/2.

Thus, if you have the first image taken in the 'image buffer', and the opacity is adjusted to 1/n, then the next images is 'median merge' into the image buffer having its opacity adjusted to 1/(n-1) first.

Once the final image is created in this way, it is read out as usual.

So the difference is, rather than the image buffer being purged each time, it is added to, with the captured image having had its opacity adjusted according to its position in the LE stack.

BTW this idea is better called LE simulation, rather than ND simulation. We are side stepping NDs :-)

124
Modules Development / Re: Full-resolution silent pictures (silent.mo)re
« on: January 16, 2021, 01:16:14 AM »
@Greg (typo in name last time, sorry)

Fully understand ‘your method’, and doing things in post.

The in camera approach, which I’m sure I will be told is not feasible in the end on all cameras, but may work on some, eg 5D3b(?), has the advantage of creating a single image, ie in camera.

Thus, for a 1s exposure, aiming for, say, a 100s simulated ND capture, instead of 100 images on the card, you just have one.


125
Modules Development / Re: Full-resolution silent pictures (silent.mo)
« on: January 15, 2021, 06:22:30 PM »
@names_are_hard

The median merge function is ‘simply’ (a+b)/2, that is sum the pixel values and half the result. As to how one does it at the pixel level I don’t know, but someone will  ;)

Anyway, for now it’s just a development marker.

Cheers

Garry

Pages: 1 ... 3 4 [5] 6 7 ... 89