A propcase question... - General Discussion and Assistance - CHDK Forum supplierdeeply

A propcase question...

  • 6 Replies
  • 206 Views
*

Offline Caefix

  • ****
  • 254
  • Sorry, busy deleting test shots...
A propcase question...
« on: 14 / August / 2020, 14:27:54 »
Advertisements
 :-[ Is this line missing in include/propset3.h and ~1.h or just not there?
Code: [Select]
#define PROPCASE_AF_FRAME                        8       // 1 = ?FlexiZone, 2 = Face AiAF / Tracking AF
// unk. member: r= shooting_get_prop(camera_info.props.af_frame);
« Last Edit: 14 / August / 2020, 15:40:02 by Caefix »
All lifetime is a loan from eternity.

*

Offline srsa_4c

  • ******
  • 4263
Re: A propcase question...
« Reply #1 on: 14 / August / 2020, 19:30:01 »
PROPCASE_AF_FRAME is 8 on my propset 3 camera, perhaps this could be added.
Propset 1 seems to have a similar property, 64. On ixus 65: AIAF off = 1, AIAF on (center AF) = 0.

*

Offline Caefix

  • ****
  • 254
  • Sorry, busy deleting test shots...
Re: A propcase question...
« Reply #2 on: 15 / August / 2020, 12:39:12 »
 :blink: Tried Sx200 (ps2), S90 (ps3), S95 (ps4), S110 (ps5), Ix255 (ps6) & Ix275 (ps10) this line:
Code: [Select]
      shooting_set_prop(8, x);The value is changeable, but not AF-frames´ behavior.
« Last Edit: 15 / August / 2020, 14:23:17 by Caefix »
All lifetime is a loan from eternity.

*

Offline Caefix

  • ****
  • 254
  • Sorry, busy deleting test shots...
Re: A propcase question...
« Reply #3 on: 07 / September / 2020, 13:32:03 »
 :( Since r5561 I would expect this lines to work same:
Code: [Select]
    props=require("propcase")
    print(get_prop(props.AF_FRAME))
    wait_click(0) -- Lua does the expected...

  case TOKENIZER_GET_AF_FRAME:
accept(TOKENIZER_GET_AF_FRAME);
// r = shooting_get_prop(8); // =>
r = shooting_get_prop(camera_info.props.af_frame); // (...metering_mode is fine)

instead happens:

ubasic.c: In function 'factor':
ubasic.c:508:41: error: 'struct <anonymous>' has no member named 'af_frame'
  r = shooting_get_prop(camera_info.props.af_frame);
All lifetime is a loan from eternity.


*

Offline reyalp

  • ******
  • 12690
Re: A propcase question...
« Reply #4 on: 07 / September / 2020, 15:15:56 »
Code: [Select]
r = shooting_get_prop(camera_info.props.af_frame); // (...metering_mode is fine)

instead happens:

ubasic.c: In function 'factor':
ubasic.c:508:41: error: 'struct <anonymous>' has no member named 'af_frame'
  r = shooting_get_prop(camera_info.props.af_frame);
It would need to be added to caminfo.props in camera_info.h for this to work. However, I would generally only added props there if they are needed for some specific CHDK functionality in a module.
Don't forget what the H stands for.

*

Offline Caefix

  • ****
  • 254
  • Sorry, busy deleting test shots...
Re: A propcase question...
« Reply #5 on: 07 / September / 2020, 15:54:57 »
  :blink:  :o There are some cams with empty backup-bat out there.
Factory reset goes not to center AF, what might be nasty.
Seems, that I can´t change behavior with script.
(Maybe only I can´t...?)
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 12690
Re: A propcase question...
« Reply #6 on: 07 / September / 2020, 15:59:36 »
  :blink:  :o There are some cams with empty backup-bat out there.
Factory reset goes not to center AF, what might be nasty.
Seems, that I can´t change behavior with script.
(Maybe only I can´t...?)
A lot of camera functionality can't be controlled by just setting a propcase. This appears to be one.  If setting it via set_prop doesn't work, adding a ubasic function to set it won't be any different.
Don't forget what the H stands for.

 

Related Topics