Author Topic: Function to read the current light intensity (exposure meter) in the script lang  (Read 5487 times)

dlrpgmsvc

  • Senior
  • ****
  • Posts: 398
  • The 7D and 50D Robin Hood
Do it is possible to have a function in the script language that can read the absolute and/or the relative light intensity that is coming through the camera lens, like the little vertical cursor on the exposure scale of the camera already does, so we can program an intervalometer exposure ramping without guessing the values by pre-setting them, but by directly read the light and then set the iso/aperture/time values in consequence ?
If you think it's impossible, you have lost beforehand

scrax

  • Contributor
  • Hero Member
  • *****
  • Posts: 1543
  • Code monkey
I got something with:
Code: [Select]
printf("Ev%f", (get_tv() + get_av()) - get_sv());
but need to be in P mode and you should half press shutter before script starts to have a good value, can't find how to simulate halfpress without closing script.
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

wolf

  • Senior
  • ****
  • Posts: 263
click(SHOOT_HALF);

scrax

  • Contributor
  • Hero Member
  • *****
  • Posts: 1543
  • Code monkey
click(SHOOT_HALF);
was the first I tried and didn't worked, added a sleep and now it works (sometimes, other times scripts hangs).

Code: [Select]
/*
@title Meter Test
*/

click(SHOOT_HALF);
sleep(1);
printf("Ev%f", (get_tv() + get_av()) - get_sv());
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

wolf

  • Senior
  • ****
  • Posts: 263
I solved  a timing issue with:

press(SHOOT_HALF);
sleep(0.2);
unpress(SHOOT_HALF);

Also hiding console felt faster.

dlrpgmsvc

  • Senior
  • ****
  • Posts: 398
  • The 7D and 50D Robin Hood
Great boys ! You are the best !  8)
If you think it's impossible, you have lost beforehand

blindcat

  • New to the forum
  • *
  • Posts: 6
Can I use this method and override values in P mode?
In M mode the EV reading didn't do something useful.
I use a nightly build of 1 may 13 on a 5D2.
Thanks


blindcat

  • New to the forum
  • *
  • Posts: 6
Nice function. Thanks for the answer and pointing to it. I better create a new thread in the scripting area.