Managed to compile a working ML with seemingly stable (my simple scripts
don't crash them, and the ML stability tests run fine) and working LUA
scripting enabled. Scripts should be put inside the scripts directory,
and can be run from the "Tweaks" menu (It has a submenu, where you can
change the script that needs to be run). Only one script can run at a
time, it runs in the background, and can be killed from the menu.
Some specifications:
* LUA: version 5.2.0 (from scripting view should be the same as 5.1.x)
* Number format: signed 32 bit integer (that means no decimal values)
* Built in libraries: all, except: math, io, os
* Stability: No problems found so far. Standard ML stability tests run.
**Only tested on 60D!**
The current API is in no way complete (even less complete than alex's
previous API), and will probably change a lot, but it's already useful
for some things.
Current commands can be found at the Wiki:
http://magiclantern.wikia.com/wiki/Lua#Current_API:
Three sample scripts are (the only useful from them is probably
wb_shoot.lua):
* dumpcfg.lua: writes the current config values to the console
* print.lua: simple bmpprint testing script
* wb_shoot.lua: takes photographs with WB changing from 3000 to 6000 in
200 increments
Downloads and source: https://bitbucket.org/sztupy/magic-lantern/downloads
The download also includes the USB PTP code too.
SztupY
--
http://magiclantern.wikia.com/
To post to this group, send email to ml-d...@googlegroups.com
To unsubscribe from this group, send email to ml-devel+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/ml-devel?hl=en
So both are used to externally control the camera (not surprisingly I am
interested in both of them :) ), but the way they do it is different.
SztupY
> Hi!
> Exactly what does the script do? Is it related to the usb controlled
> functions through android devices??
> I,m a little lost, don,t wanna miss out on a goood thing :).
> //D
>
SztupY
This might be a stupid question - but on the other hand, it might not, so here it goes: Is this safe? Since there is no eos vm or software simulator out there, can I fry my camera with a lua script or are there some boundaries and safeguards (planned)?
Am Dienstag, 6. März 2012 19:52:22 UTC+1 schrieb Francis Danforth:This is fantastic. I think this can be extremely powerful for users/developers who are interested in adding their own features without having to keep up with the changes made in the daily builds. Now I just need to learn how to write LUA scripts.
--
--
It can be combined with the CHDK model: there are no precompiled
variants for the unsafe lua. But I don't think this much safety is
actually needed. (there are lesser variants, like simply not including
the .bin in official builds)
SztupY
SztupY