get_prop / set_prop for sx30is / a495is - Script Writing - CHDK Forum

get_prop / set_prop for sx30is / a495is

  • 6 Replies
  • 4505 Views
get_prop / set_prop for sx30is / a495is
« on: 01 / February / 2012, 19:40:50 »
Advertisements
where do i find a list of property values for the sx30is and a495s, i'm trying to write a script to work on both and after 5 hours i'm off to bed lol

all i have had is crashes and locks because i'm obviously not reading/writing the right values to the right places...

/sleepy(grumpy)(hungry)...

*

Offline SkyWalker9

  • ****
  • 301
  • SX20 IS (fw 1.02b)
Re: get_prop / set_prop for sx30is / a495is
« Reply #1 on: 01 / February / 2012, 23:41:20 »
where do i find a list of property values for the sx30is and a495s, i'm trying to write a script to work on both and after 5 hours i'm off to bed lol...all i have had is crashes and locks because i'm obviously not reading/writing the right values to the right places.../sleepy(grumpy)(hungry)...
http://chdk.wikia.com/wiki/PropertyCase

You might also find that your SX30 has many propcas attributes similar to the SX20. Here are the ones I've tested on my SX20: http://chdk.setepontos.com/index.php?topic=4348.msg60704#msg60704  Note: Although all are "read" capable, not all may be "write" capable.

Re: get_prop / set_prop for sx30is / a495is
« Reply #2 on: 02 / February / 2012, 05:51:06 »
Thankyou very much!

cant wait to get some time later to try these...

oh hang on some missing, guess i'll have to use the props discovery script, at least i can then add them for others.


*

Offline reyalp

  • ******
  • 14126
Re: get_prop / set_prop for sx30is / a495is
« Reply #3 on: 02 / February / 2012, 16:13:40 »
Thankyou very much!

cant wait to get some time later to try these...

oh hang on some missing, guess i'll have to use the props discovery script, at least i can then add them for others.
If you write your scripts in Lua, you can use use the propcase module and refer to know propcases by name.  See http://chdk.wikia.com/wiki/Lua/Lua_Reference#get_prop

The names/values are taken from LUALIB/GEN/popcaseN.lua

You shouldn't use these GEN files directly, but they may be a useful reference if you want to update the wiki.
Don't forget what the H stands for.

Re: get_prop / set_prop for sx30is / a495is
« Reply #4 on: 02 / February / 2012, 16:33:05 »
I have been collecting quite a few of them today, i think i have the zoom/focus/aperture/ shutter/display/iso and mode knob right, from that I should be able to write what i started, I dont know about editing the info in the wiki's and suchlike but once i have tested these values work (next free day saturday) as some of them seem duplicated i'll just post the list.


*

Offline reyalp

  • ******
  • 14126
Re: get_prop / set_prop for sx30is / a495is
« Reply #5 on: 02 / February / 2012, 16:57:08 »
I have been collecting quite a few of them today, i think i have the zoom/focus/aperture/ shutter/display/iso
I believe all of these should all be identified in propcase.lua already. If not, the ports are broken, and more needs to be corrected than just the wiki. Note that in some cases there are multiple props which refer to (mostly) equivalent values, so you might have found a different value than the one listed.

You can look here:
a495 http://trac.assembla.com/chdk/browser/trunk/include/propset3.h
sx30 http://trac.assembla.com/chdk/browser/trunk/include/propset4.h

If you want to update the wiki to reflect the propsetN.h values, that would certainly be welcome :)

The wiki should probably link to the propsetN.h headers for each propset.
Don't forget what the H stands for.

Re: get_prop / set_prop for sx30is / a495is
« Reply #6 on: 02 / February / 2012, 17:32:54 »
thanks i'll compare my results

 

Related Topics


SimplePortal © 2008-2014, SimplePortal