CHDK Wiki
Register
Tag: Visual edit
(47 intermediate revisions by 8 users not shown)
Line 15: Line 15:
 
===Intervalometers===
 
===Intervalometers===
 
====Universal====
 
====Universal====
  +
* [[Time_Lapse_Script_One |Time Lapse Script One]] - accurate intervalometer with display off plus focus & exposure lock (requires CHDK 1.3.0 or better)
 
* [[uBASIC/Scripts: A Simple Intervalometer|A Simple Intervalometer]] - like it says - "simple"
 
* [[uBASIC/Scripts: A Simple Intervalometer|A Simple Intervalometer]] - like it says - "simple"
 
* [[Selective_Intervalometer|Selective Intervalometer]] - fine granular control of time of day and day of week shooting
 
* [[Selective_Intervalometer|Selective Intervalometer]] - fine granular control of time of day and day of week shooting
* [[uBASIC/Scripts: Ultra Intervalometer|Ultra Intervalometer]]  - simple script without many features beyond precise timing
+
* [[uBASIC/Scripts: Ultra Intervalometer|Ultra Intervalometer]]  - several simple intervalometer scripts with different features
 
* [[Fast_Shooter_Intervalometer|Fast Shooter Intervalometer]]  -  "fastest" shooting without using camera's continuous mode
 
* [[Fast_Shooter_Intervalometer|Fast Shooter Intervalometer]]  -  "fastest" shooting without using camera's continuous mode
 
* [[uBASIC/Scripts: A fast "intervalometer"|A fast "intervalometer"]]  - uses camera's continous shot mode -  interval duration not under your control
 
* [[uBASIC/Scripts: A fast "intervalometer"|A fast "intervalometer"]]  - uses camera's continous shot mode -  interval duration not under your control
 
* [[uBASIC/Scripts:Time Lapse Photography|Time Lapse Photography]] -- shoots continuously with an interval.
 
* [[uBASIC/Scripts:Time Lapse Photography|Time Lapse Photography]] -- shoots continuously with an interval.
  +
*[[Ultimate_Intervalometer|Ultimate Intervalometer]] - script for taking time lapse photos over weeks or months
* [[Lua/Scripts: Accurate Intervalometer with power-saving and pre-focus|Accurate Intervalometer]] - regular intervalometer with power-saving and pre-focus
 
  +
* [[Lua/Scripts: Raw Meter Intervalometer|Raw Meter Intervalometer]] - Fast, accurate intervalometer with raw exposure metering and flexible exposure control
 
  +
* [https://chdk.setepontos.com/index.php?topic=13856.new;topicseen#new SUIx] -- your bread and butter for timelapse projects
 
====Camera Specific====
 
====Camera Specific====
 
* [[Countdown Intervalometer | Countdown Intervalometer]] is an easy to use intervalometer script suitable for the casual user.
 
* [[Countdown Intervalometer | Countdown Intervalometer]] is an easy to use intervalometer script suitable for the casual user.
* [[uBASIC/Scripts:accurate intervalometer|Accurate Intervalometer]] <span style="line-height:20.98958396911621px;"> uses the get_tick_count</span><span style="line-height:20.98958396911621px;"> function to accurately time intervals </span>
+
* [[uBASIC/Scripts:accurate intervalometer|Accurate Intervalometer 1]] uses the get_tick_count function to accurately time intervals
 
* [[Lua/Scripts: Accurate Intervalometer with power-saving and pre-focus|Accurate Intervalometer 2]] a regular intervalometer with power-saving and pre-focus
 
* [[uBASIC/Scripts: yet another accurate intervalometer|Yet Another Accurate Intervalometer]] uses the change in exposure count for faster shooting
 
* [[uBASIC/Scripts: yet another accurate intervalometer|Yet Another Accurate Intervalometer]] uses the change in exposure count for faster shooting
 
* [[uBASIC/Scripts: OMNI Intervalometer|OMNI Intervalometer]] combines video & regular shooting
 
* [[uBASIC/Scripts: OMNI Intervalometer|OMNI Intervalometer]] combines video & regular shooting
   
 
===Special Purpose Intervalometers===
 
===Special Purpose Intervalometers===
  +
====<span style="font-size:14px;line-height:21px;">Universal</span>====
 
 
==== Universal ====
 
* [[Autoexposure_Intervalometer|Autoexposure Intervalometer]]
 
* [[Autoexposure_Intervalometer|Autoexposure Intervalometer]]
* [[Drivelapse]] script for recording a time lapse from a moving vehicle. Use this for road trips
+
* [[Drivelapse]] : script for recording a time lapse from a moving vehicle. Use this for road trips
* [http://chdk.setepontos.com/index.php?topic=2589.msg24632#msg24632 Carlapse - scripts for shooting timelapse from a  car
+
* [http://chdk.setepontos.com/index.php?topic=2589.msg24632#msg24632 Carlapse] : older scripts for shooting timelapse from a  car
* [[Battery Intervalometer]] - demonstrates all know techniques for conserving battery power (Lua)
+
* [[Battery Intervalometer]] : demonstrates all know techniques for conserving battery power (Lua)
* [[Meteor_Intervalometer_with_Dark_Frame_Managment|Meteor Intervalometer]] - night sky photography with dark frame subtraction management
+
* [[Meteor_Intervalometer_with_Dark_Frame_Management|Meteor Intervalometer]] : night sky photography with dark frame subtraction management
 
* [http://chdk.setepontos.com/index.php?topic=11036.msg107966#msg107966 HDRLapse] : HDR time lapse script
  +
*[[Lua/Scripts: Fixed Exposure Intervalometer|Fixed Exposure Intervalometer]] : astrophotography oriented script for long exposures with fixed exposure
   
 
====Camera Specific====
 
====Camera Specific====
Line 50: Line 56:
 
* [http://chdk.setepontos.com/index.php/topic,2156.msg20057.html SunsetF14]
 
* [http://chdk.setepontos.com/index.php/topic,2156.msg20057.html SunsetF14]
 
* [http://chdk.setepontos.com/index.php?topic=3079.msg31644#msg31644 SunsetF16] - 1.01 version of this script is camera independent and works with current releases of CHDK
 
* [http://chdk.setepontos.com/index.php?topic=3079.msg31644#msg31644 SunsetF16] - 1.01 version of this script is camera independent and works with current releases of CHDK
* [http://chdk.setepontos.com/index.php?topic=4920.0 YASS - Yet Another Sunset Script] - camera dependent - uses hard coded property case values
+
* [http://chdk.setepontos.com/index.php?topic=10493 YASS v4 - Yet Another Sunset Script] - works with all cameras
   
 
=== Bracketing ===
 
=== Bracketing ===
Line 67: Line 73:
 
* [[Lua/Scripts: Scene Bracketing(lua)|Scene Bracketing(lua)]]
 
* [[Lua/Scripts: Scene Bracketing(lua)|Scene Bracketing(lua)]]
 
plus >> [[UBASIC/Scripts:_Make_ANY_Single-Shot_Intervalometer_into_an_HDR-Bracketing_Script|Bracketing without a script.]]
 
plus >> [[UBASIC/Scripts:_Make_ANY_Single-Shot_Intervalometer_into_an_HDR-Bracketing_Script|Bracketing without a script.]]
  +
  +
=== KAP & UAV ===
  +
* [[KAP_UAV_Exposure_Control_Script|Kite &amp; UAV Photography]] : a fancy intervalometer with advanced exposure control and USB interface for kite and uav photography
   
 
===HDR===
 
===HDR===
Line 74: Line 83:
 
* [[uBASIC/Scripts: HDR with stacking|HDR with stacking]]
 
* [[uBASIC/Scripts: HDR with stacking|HDR with stacking]]
 
* [[uBASIC/Scripts: HDR time lapse|HDR time lapse]]
 
* [[uBASIC/Scripts: HDR time lapse|HDR time lapse]]
  +
* [https://app.box.com/s/7nnkxok6n8epo62paenr HDRlapse.lua] Universal HDR intervalometer with fast shooting
 
* [[uBASIC/Scripts: HDR for G7|HDR for G7]]
 
* [[uBASIC/Scripts: HDR for G7|HDR for G7]]
   
===<span style="font-size:16px;line-height:21px;">Focus & Depth of Field Stacking</span>===
+
=== Focus & DOF Stacking ===
  +
* [[Technical_Aspects_of_Stacking_Macro_Images|Technical Aspects of Stacking Macro Images]]
* [[uBASIC/Scripts: macro DOFstacker|Macro DOFstacker]]
 
 
* [http://chdk.setepontos.com/index.php?topic=12088.0 fabri22's Focus Stacking Script]
* [[uBASIC/Scripts: yet another DOF stacker|Yet another DOF stacker]] (Best of the bunch for macro! IMHO)
 
 
* [http://chdk.setepontos.com/index.php?topic=6292.0 DOF-based focus stack script NOT based on CHDK DOF Calculations]
* [[uBASIC/Scripts: Focus Bracketing|Focus Bracketing v1.1]] (deprecated)
 
 
* [[uBASIC/Scripts: Focus Bracketing with set_focus and get_focus|Focus Bracketing with set_focus and get_focus]]
 
* [[uBASIC/Scripts: Focus Bracketing with set_focus and get_focus|Focus Bracketing with set_focus and get_focus]]
 
* [[uBASIC/Scripts: macro DOFstacker|Macro DOFstacker]]
 
* [[uBASIC/Scripts: yet another DOF stacker|Yet another DOF stacker]]
 
* [[uBASIC/Scripts: Focus Bracketing|Focus Bracketing v1.1]] (deprecated - uses manual focus button pushes)
  +
* [[Timefocus.bas : a Shutter & Focus Stacking Script]]
  +
* [[Landscape Focus Bracketing : perfect near to far focus brackets ]]
   
 
=== Motion Detection ===
 
=== Motion Detection ===
*[[Motion_Detection|Motion Detection]]
+
*[[Motion_Detection|Motion Detection Wiki Page]]
 
*[[Motion_Detect_Plus|Motion Detect Plus Script]] - Takes a series of images that are triggered using motion detection.
 
*[[Motion_Detect_Plus|Motion Detect Plus Script]] - Takes a series of images that are triggered using motion detection.
  +
*[http://chdk.setepontos.com/index.php?topic=10864 MDFB2013.lua] - updated version of fudgey's MDFB script (see below)
* [[uBASIC/Scripts:Lightning script -- Fudgey|Lightning script -- fudgey]] (Lightning script which captures quick successions of light bursts.).
 
* [http://chdk.setepontos.com/index.php?action=dlattach;topic=471.0;attach=2132 Fast Motion detection (latest version)]
+
* [http://chdk.setepontos.com/index.php?action=dlattach;topic=471.0;attach=2132 MDFB-080914.BAS] - fudgey's Fast Motion Detection (best script for lightning)
  +
* [[uBASIC/Scripts:Lightning script -- Fudgey|MDFB-0802054.BAS]] - fudgey's original lightning script
 
* [[uBASIC/Scripts: Multipurpose Motion Detection|Multipurpose Motion]] (Sexy script. Could use for monitoring, or even photo shoots for banquets and such.)
 
* [[uBASIC/Scripts: Multipurpose Motion Detection|Multipurpose Motion]] (Sexy script. Could use for monitoring, or even photo shoots for banquets and such.)
 
* [[uBASIC/Scripts: Universal motion detection|Universal motion detection]]
 
* [[uBASIC/Scripts: Universal motion detection|Universal motion detection]]
 
* [[uBASIC/Scripts: AdaptiveMD|Motion detection with adaptive sensitivity]]
 
* [[uBASIC/Scripts: AdaptiveMD|Motion detection with adaptive sensitivity]]
 
* [[uBASIC/Scripts: Multipurpose Motion Detection|Multipurpose Motion Detection]]
 
* [[uBASIC/Scripts: Multipurpose Motion Detection|Multipurpose Motion Detection]]
* [http://Birding_with_CHDK Birding with CHDK] - tips on bird pictures and a script for video when motion present - very useful for bird pictures
+
* [[Birding_with_CHDK|Birding with CHDK]] - tips on bird pictures and a script for video when motion present - very useful for bird pictures
   
 
=== Zoom ===
 
=== Zoom ===
Line 100: Line 116:
   
 
=== Video ===
 
=== Video ===
* [[Continuous Video Scripts]] auto restart after video timelimit reached
+
* [[Continuous Video Scripts]]  - automatic restart of video  recording after Canon time limit reached
* [[uBASIC/Scripts: Easy Zoom & MF while Video Recording|Easy Zoom &amp; MF while Video Recording]]
+
* [[uBASIC/Scripts: Easy Zoom & MF while Video Recording|Easy Zoom &amp; MF while Video Recording]] - keyboard control of zoom and focus setting while recording
  +
* [[Manual_Exposure_Control_for_Video_Recording|Manual Exposure Control for Video Recording]]  - manual override of Tv, Av, & Sv while recording
* [http://chdk.setepontos.com/index.php?topic=5295.msg68622#msg68622 Video Manual Control: AE lock & unlock]
 
   
===Lua Script Libraries===
+
=== Other ===
* [http://chdk.setepontos.com/index.php?topic=6149.0 Utilities #1]
 
* [http://chdk.setepontos.com/index.php?topic=9382.0 Sardanian Knife]
 
   
  +
* [[CHDKplus]] :  a script that provide full manual exposure control via an on screen GUI interface
=== Other ===
 
 
* [[Sunrise_and_Sunset_Time_Calculation_Script|Sunrise &amp; Sunset Time Calculation Script]]
 
* [[Sunrise_and_Sunset_Time_Calculation_Script|Sunrise &amp; Sunset Time Calculation Script]]
* [http://chdk.setepontos.com/index.php?topic=8238.0 Photobooth] - <span style="color:rgb(85,85,85);font-family:Tahoma,sans-serif;font-size:11.818181991577148px;line-height:16.789772033691406px;">a CHDK powered motion-detection-triggered photobooth.</span>
+
* [http://chdk.setepontos.com/index.php?topic=8238.0 Photobooth] - a CHDK powered motion-detection-triggered photobooth.
 
* [[uBASIC/Scripts: a property case value tester|A Property Case Value Tester]]
 
* [[uBASIC/Scripts: a property case value tester|A Property Case Value Tester]]
 
* [[uBASIC/Scripts: Button test|Show which key has been pressed]]
 
* [[uBASIC/Scripts: Button test|Show which key has been pressed]]
Line 117: Line 131:
 
* [http://chdk.wikia.com/wiki/Lua#TagMe.2C_the_Lua_EXIF_tagger TagMe]  a  Lua script that shows how to write to a JPG's EXIF UserComment tag
 
* [http://chdk.wikia.com/wiki/Lua#TagMe.2C_the_Lua_EXIF_tagger TagMe]  a  Lua script that shows how to write to a JPG's EXIF UserComment tag
 
* [[Lua/Lua_Reference#RAW_development|RAW development ]]- some functions and an example script for processing RAW images in the camera
 
* [[Lua/Lua_Reference#RAW_development|RAW development ]]- some functions and an example script for processing RAW images in the camera
  +
* [[Lua/Scripts: Continuous Autoexposure|Continuous Autoexposure]] : Raw meter based auto exposure for continuous shooting
   
 
=== Old / Obsolete ===
 
=== Old / Obsolete ===
Line 123: Line 138:
 
* [[uBASIC/Scripts: Cable Release|Cable Release]] (Obsolete unless you need a mechanical trip, all new builds have USB remote!)
 
* [[uBASIC/Scripts: Cable Release|Cable Release]] (Obsolete unless you need a mechanical trip, all new builds have USB remote!)
 
* [[uBASIC/Scripts:Time Bandit 1.0|Time Bandit 1.0 -- Arman Bohn]] This timelapse script creates a sequence of jpegs which can be turned into an a video on your PC.
 
* [[uBASIC/Scripts:Time Bandit 1.0|Time Bandit 1.0 -- Arman Bohn]] This timelapse script creates a sequence of jpegs which can be turned into an a video on your PC.
* [[uBASIC/Scripts: Scripts for Canon A640|Scripts for Canon A640]] (New: now updated for the AllBest build)
+
* [[uBASIC/Scripts: Scripts for Canon A640|Scripts for Canon A640]]
  +
  +
===Lua Script Libraries===
  +
* [http://chdk.setepontos.com/index.php?topic=6149.0 Utilities #1]
  +
* [http://chdk.setepontos.com/index.php?topic=9382.0 Sardanian Knife]
   
 
=== Other Resources / Archives ===
 
=== Other Resources / Archives ===

Revision as of 20:34, 10 August 2019

Important Remarks

The scripts posted below were written by CHDK users, and are contributed as is.

Please note that prior to 2009 a number of special builds of CHDK were in general release and some used different uBASIC commands and features. With the unification of CHDK into one release trunk, some of these older scripts may not run on current versions of CHDK.

Also, be aware that some of these scripts use CHDK's ability to simulate camera button presses. As the buttons on any camera model typically vary from what is found on other camera models, the button press sequence scripted needs to be verified as correct for your camera.

Finally, some of these scripts use the get_prop and set_prop commands. These directly read or write particular memory locations that store some camera settings. Different cameras generations have different property number assignments, so be careful when using any script with these commands. Use the get_propset command to be sure which parameter set to use for a particular camera.

Scripts

Intervalometers

Universal

Camera Specific

Special Purpose Intervalometers

Universal

Camera Specific

Sunset Scripts

Bracketing

plus >> Bracketing without a script.

KAP & UAV

  • Kite & UAV Photography : a fancy intervalometer with advanced exposure control and USB interface for kite and uav photography

HDR

Focus & DOF Stacking

Motion Detection

Zoom

Video

Other

Old / Obsolete

Lua Script Libraries

Other Resources / Archives

  • CHDK Forum > Script Writing > Completed and Working Scripts: Some more scripts that may not appear here at the Wikia archive. Due to the easier method of jointly discussing and working on scripts at the CHDK Forum some new scripts are showing up there that you may not find in any other places. For example: some newer and faster Lightning Photography /Motion Detection scripts have been added (among others).
  • CHDK scripts for Canon SD1000/IXUS70: An interesting collection of unique scripts, written primarily for the SD1000/IXUS70 camera (DIGIC III), but can easily be converted to most all DIGIC II cameras by following the directions in the simple REM comments in them. Worth checking them out. They use some creative shortcuts that can be applied to your own scripts, or used as-is.

Suggestions for contributors

Dear script authors and those just learning: the CHDK Forum has a dedicated Script Writing and uBASIC section. The forum's design and capabilities make it far easier to discuss and help with the sometimes confusing nature of scripts and uBASIC. You are strongly encouraged to post on that forum so that you can get assistance more rapidly and in a much more easy-to-follow discussion format. I hope you can join us there!

 For beginners, there is a tutorial: TutorialScratchpadSee also the Scripting Cross Reference Page for the complete list of CHDK scripting commands for Lua and uBasic as well as many links to other scripting reference pages.

Please feel free to link your debugged and tested scripts to this wiki page. Reserve discussion and help for writing your script to the CHDK Forum: Script Writing

Script pages linked here should include:
  • Camera model that you wrote it on.
  • Other camera models that it is known to work on.
  • The CHDK build required to run it (if it's an extension beyond GrAnds builds).
  • Any special instructions that may be required for running the script.
  • Your script!
Since some scripts require special instructions that might be too lengthy to write into the script itself with "print" statements, it is a good practice to include a short but informative text-file with each script, that could be saved by the same filename but using a .TXT extension so the file may be referred to as a help-file using CHDK's "File Reader".
It has been found that some people are irresponsibly/foolishly sharing collections of scripts without the important accompanying documentation for each script. Try to include some extra info in the header of your script in the form of rem statements that might help the unfortunate people that might get hold of undocumented scripts. Beginning of script example:
rem Author: Your Alias/Name
rem For S-Series ONLY!
rem Requires Fingalo's build v 106 or later!
rem Use with caution! Read documentation!

Suggestions on posting your own script to your  scripts page:

  1. Click on the EDIT TAB at the top of the page (not the ones beside each entry).
  2. Scroll to the bottom of the list of scripts.
  3. Add new line
    * [[uBASIC/Scripts: <<YOUR SCRIPT TITLE>>|<<YOUR SCRIPT TITLE>>]]
    to the list.
  4. Save changes.
  5. Click on the list item you just added.
  6. Use the following template to publish your script:
== <<SCRIPT TITLE>> == 
:'''Written for/on:''' <<CAMERA MODEL>>

:'''Also works on:''' <<CAMERA MODELS>>

:'''Required CHDK build:''' <<either 'any' or specify the build required>> 

<<SCRIPT DESCRIPTION>> 

'''Documentation/Help''' (save as a small "<<script_filename>>.txt" file to your /CHDK/SCRIPTS/ folder) 

----

<<HELP TEXT>>

---- 

'''Script Code''' (save as "<<script_filename>>.bas" to your /CHDK/SCRIPTS/ folder) 

<pre>

<<SCRIPT BODY>>

</pre> 

--~~~

[[Category:Scripts]]