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

A propcase question...

  • 28 Replies
  • 7200 Views
*

Offline Caefix

  • *****
  • 947
  • 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

  • ******
  • 4451
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

  • *****
  • 947
  • 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

  • *****
  • 947
  • 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

  • ******
  • 14110
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

  • *****
  • 947
  • 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

  • ******
  • 14110
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.

*

Offline Caefix

  • *****
  • 947
  • Sorry, busy deleting test shots...
All lifetime is a loan from eternity.


*

Offline reyalp

  • ******
  • 14110
Re: A couple of Multicam doubts and general help
« Reply #8 on: 15 / October / 2020, 12:34:18 »
moved from https://chdk.setepontos.com/index.php?topic=13917.120
:-[
https://chdk.setepontos.com/index.php?topic=14090.msg144094#msg144094
Please, can you not post stuff like this in threads that are about something completely different? It's just rude and makes everything harder to follow.

If you want to remind me about something you think I should have responded to, you can bump the original thread. But in this case, I believe I already answered the question, so if there's something else you want you'll need to be more specific.
Don't forget what the H stands for.

*

Offline Caefix

  • *****
  • 947
  • Sorry, busy deleting test shots...
Re: A propcase question...
« Reply #9 on: 15 / October / 2020, 12:58:37 »
 :( The propcase question is answered, but this batteries keep a trap.
All lifetime is a loan from eternity.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal