new feature in ubasic - get_max_zoom, need users help :) - page 2 - General Discussion and Assistance - CHDK Forum
supplierdeeply

new feature in ubasic - get_max_zoom, need users help :)

  • 18 Replies
  • 6060 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #10 on: 08 / May / 2008, 18:00:04 »
Advertisements
alright, in my build i added following ubasic code:


get_zoom_steps - returns the possible zoomsteps (9 on a620, 129 on s3is for example)
get_nd_present - returns 0 if no ND present, 1 if ND present and real diaphragm NOT present, 2 if both ND & diaphragm present.
get_propset - returns 1 if propset 1,2 if propset is 2. propset 1 = digic II propsets, propset 2 = digic III propsets (see PropertyCase - CHDK Wiki )

please read the whole message here: http://chdk.setepontos.com/index.php/topic,978.msg11875.html#msg11875. i will provide binaries & diff there as well.

Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #11 on: 09 / May / 2008, 07:03:17 »
So this would eventually lead to "Set Zoom Priority" being in CHDK? :)
what do you mean by that?
I'm asking if we might have the option built into CHDK to command our cameras to specific zoom, along with zoom bracketing at infinity, things like that...
Whoa-Hey! Careful where you point that thing. You're gonna shoot someone!

http://chdk.wikia.com/wiki/DoF_Stacking

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #12 on: 09 / May / 2008, 07:23:14 »
good idea. it is definitly possible via the use of scripts.
maybe it can be added to the override menu, why not.

Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #13 on: 09 / May / 2008, 13:31:16 »
That would be great!
Whoa-Hey! Careful where you point that thing. You're gonna shoot someone!

http://chdk.wikia.com/wiki/DoF_Stacking


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #14 on: 09 / May / 2008, 20:51:54 »
just so that i understand it better: what could be a possible purpose of such thing, what use do you expect? do you have some kind of examples?

Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #15 on: 11 / May / 2008, 06:56:43 »
To be able to call on the camera to reconstruct every part of a shot.
To be able to automatically do a series of zoomed portraits for a set.
And I imagine it would be great for testing other things.
Whoa-Hey! Careful where you point that thing. You're gonna shoot someone!

http://chdk.wikia.com/wiki/DoF_Stacking

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #16 on: 20 / July / 2008, 07:34:53 »
hah, i just noticed that get_zoomsteps in my build (and subsequently also in the juciphox build) does NOT return the actual "maximum zoom", but instead the CURRENT zoom.
so far i havent been able to find out why the CONST would be changed during runtime, maybe one of you will find the approriate code in the source.

oh and yeah, the zoom override feature also still needs to be thought about :D

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #17 on: 22 / July / 2008, 15:54:34 »
update: this command DOES work. for example on the sx100IS and another ixus. it does NOT work on for example my s3is and the a720IS. so far i don't have ANY clue why it should NOT work on my s3is.


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: new feature in ubasic - get_max_zoom, need users help :)
« Reply #18 on: 22 / July / 2008, 16:54:09 »
3rd & final & last update: it IS working.

my bad, i had a wrong script, i used get_zoomsteps instead of get_zoom_steps, the ubasic interpreter didnt throw an error, so i wrongly assumed the script was alright. darn, i spent a few hours on this :D

edit: thx to hacki btw, he helped me pinpoint the problem, after long hours of irc support :D
« Last Edit: 22 / July / 2008, 16:57:40 by PhyrePhoX »

 

Related Topics