CHDK Wiki

Editing

UBASIC/TutorialScratchpad

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 1,006: Line 1,006:
 
::SX-series: x = 0 to 22 (23 steps), SX50: 0 to 200 (201 steps)
 
::SX-series: x = 0 to 22 (23 steps), SX50: 0 to 200 (201 steps)
   
'''Note 1:''' Camera does not refocus automatically after the end of zooming. Use a click or press/release "shoot_half" command to implement refocusing.
+
'''Note 1:''' Camera does not refocus automatically after the end of zooming. Use a click or press/release "shoot_half" command to implement a refocusing if needed.
   
'''Note 2:''' It was found when using the slowest speed (5) that an S3 IS might shut down after it had waited too long for the zoom to traverse the whole range of 129 steps; a speed of 10 did not exhibit this behavior on an S3 IS. A '''zoom_speed''' of 5 is '''so slow''' though, that I doubt it would rarely be needed, except in movie-shooting scripts, and then the range could be limited to prevent camera shut-down.
+
'''Note 2:''' It was found that if using the slowest speed (5), that an S3 IS might shut down after it has waited too long for the zoom to traverse the whole range of 129 steps, a speed of 10 did not exhibit this behavior on an S3 IS. 5 is '''so slow''' though, that I doubt it would rarely be needed, except in movie-shooting scripts, and then the range could be limited to prevent camera shut-down.
   
'''Note 3: CAUTION!''' (found on S3 IS) If '''set_zoom_speed''' is not written into the script when '''set_zoom x''' is used, the camera will refocus some of the optics so that it is unable to focus on anything in any mode. The camera (when zooming without a set-zoom speed) appears to move an internal lens element that puts the lens into a Super-Macro mode where it focuses on internal lens elements at widest angle. If this command is left out of a script using the '''set_zoom x''' command, the camera will have to be shut down and restarted to reset the zoom lens optics back to defaults. However, an interesting thing was found when running the [[uBASIC/Scripts: Zoom_Shoot|"Zoom-Shoot"]] script by rem-ing out the set_zoom_speed command (thus removing it from being implemented): After the camera resets its zoom, the lens is now in a ZOOMED tele-macro SUPER-MACRO MODE, resulting in a close-up focusing ability at fullest zoom (as if a +4 or so close-up lens had been placed on the camera)! This far surpasses the capabilities that Canon designed. Perhaps this "bug" could be put to wider use? Or might it damage the focusing and zooming mechanisms? USE WITH CAUTION, because you can hear the camera strain up against some internal lens-adjustment stops when it is trying to reset the zoom. The only way to "un-do" this tele-super-macro mode (but this is really nice!) is simply to turn the camera off and on again.
+
'''Note 3: CAUTION!''' (found on S3 IS) If '''set_zoom_speed''' is not written into the script when '''set_zoom x''' is used, the camera will refocus some of your optics to make it where the camera is unable to focus on anything in any mode. The camera (when zooming without a set-zoom speed) appears to move an internal lens element that puts the lens into a Super-Macro mode where it focuses on internal lens elements at widest-angle. If this command is left out of a script using the '''set_zoom x''' command, you will have to shut down your camera and restart it to reset the zoom-lens' optics back to defaults. However, an interesting thing is found -- when running the [[uBASIC/Scripts: Zoom_Shoot|"Zoom-Shoot"]] script by rem-ing out the set_zoom_speed command (removing it from being implemented), after the camera resets its zoom, the lens is now in a ZOOMED tele-macro SUPER-MACRO MODE! Giving you close-up focusing ability at fullest zoom! (as if you had placed a +4 or so close-up lens on your camera) Far surpassing the capabilities that Canon designed. Perhaps this "bug" could be put to great use? Or it might damage your focusing and zooming mechanisms. USE WITH CAUTION. Because you can hear the camera strain up against some internal lens-adjustment stops when it's trying to reset the zoom. And the only way to "un-do" this (really nice!) tele-super-macro mode is by turning the camera off and on again.
   
 
(Leaving this small chart here for reference, but is no longer applicable to the new set_zoom commands.)
 
(Leaving this small chart here for reference, but is no longer applicable to the new set_zoom commands.)
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template