get_file_counter() for ubasic - Feature Requests - CHDK Forum

get_file_counter() for ubasic

  • 4 Replies
  • 2599 Views
*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
get_file_counter() for ubasic
« on: 21 / February / 2008, 03:59:08 »
Advertisements
Could this be included in the trunk?

Works on A710. Anyone else?
« Last Edit: 23 / February / 2008, 10:33:57 by Jucifer »

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: get_file_counter() for ubasic
« Reply #1 on: 22 / February / 2008, 18:27:08 »
If it works the same for other cameras, maybe it should be shifted to increment by just 1 for each image...for easier scripting?

*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
Re: get_file_counter() for ubasic
« Reply #2 on: 23 / February / 2008, 06:05:39 »
Well, it _would_ be more user-friendly, if it incremented just 1 with every exposure... :]

Don't have the skills to do that though, just made a function already there accessable with ubasic...
Apparently this kind of counter would be nice for DigicIII? (Why not also for II, although it has propcase 218 (haven't tested 218, using get_file_counter ;))

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: get_file_counter() for ubasic
« Reply #3 on: 23 / February / 2008, 08:50:58 »
I haven't tried it, but would replacing
Code: [Select]
r = get_file_counter();in your diff with
Code: [Select]
r = get_file_counter() >> 4 ;do the trick?

Btw, which camera did you try this on?


*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
Re: get_file_counter() for ubasic
« Reply #4 on: 23 / February / 2008, 10:34:58 »
Did the trick. Thank you. :]

(updated first post)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal