02bb942abd
Cleaned up the code and incorporated Tobias Jakob's comments
Bill Ferguson
2018-08-20 21:12:07 -04:00
a37c33ec36
Fixed enable preference not saved
Bill Ferguson
2018-08-19 12:30:45 -04:00
0e4926426f
Added error feedback when script doesn't load
Bill Ferguson
2018-08-19 01:11:54 -04:00
a309db8739
Created tools/script_manager.lua to provide an interface from darktable for managing the lua scripts. Updated README.md to reflect the added script.
Bill Ferguson
2018-08-18 15:04:43 -04:00
1a998581ef
Created tools/executable_manager.lua for managing external executables used by the lua scripts. Updated the README to reflect the new script.
Bill Ferguson
2018-08-17 19:30:43 -04:00
26e16ffeda
Added a version check to modify the arguments based on the version of enfuse. Enfuse 4.2 no longer accepts the exposure-mu argument. The closest function is exposure-optimum. For versions of enfuse less than 4.2 exposure-mu is used. For versions of enfuse greater than 4.2, exposure-optimum is used.
Bill Ferguson
2018-08-15 00:30:18 -04:00
61a55f71f5
Created a cross platform script that calls an external executable. It also performs a service that some users might find useful, extracting the embedded jpeg image from a raw file, then importing and grouping it with the raw. Updated README.md to reflect the new file
Bill Ferguson
2018-08-07 22:08:09 -04:00
4acba4d48a
corrected "dt" to "darktable" in line 63 of cr2hdr
sjjh
2018-08-04 01:43:38 +02:00
8b5a43e435
Added require statement for official/yield.lua so that darktable.control.execute() would have all of it's requirements met without the user having to remember to add it somewhere else
Bill Ferguson
2018-07-12 13:23:33 -04:00
26fce03d0f
Removed leftover unused code
Bill Ferguson
2018-07-11 11:49:01 -04:00
1a22bfbcef
Added system library to handle running external commands on different operating systems in a transparent manner. Added file and path quoting that is cross platform compatible. Changed gimp.lua to use the new utilities.
Bill Ferguson
2018-07-11 11:32:48 -04:00
050783fc8b
enfuse_pro_2 modified per wpferguson
BzKevin
2018-07-07 11:40:01 -04:00
4b32c34ebd
Removed 'open -W -a' for mac commands from check_if_bin_exists since it only appears to be needed for GUIs. Added 'open -W -a' for macs using GIMP in gimp.lua
Bill Ferguson
2018-07-06 23:04:44 -04:00
b9072cccba
Updated README.md to reflect change to snap packaging enabling lua and included instructions on how to use the scripts with the snap
Bill Ferguson
2018-05-22 12:11:55 -04:00
22633d6130
Updated README.md to better present what the lua-scripts are and how to use them. Provided tables of scripts, whether they are standalone, and cross platform compatibility. Provided instructions for install on Linux, MacOS, and Windows as well as instructions for updating the scripts.
Bill Ferguson
2018-05-18 22:28:33 -04:00
7acf2b9cac
Fixed bug where log_level() always returned log.success instead of the correct log level
Bill Ferguson
2018-05-15 01:22:09 -04:00
965d8791d8
single quoted filename arguments to the hugin commands for the supplied image files. Single quoted any filenames derived from the supplied image files in case they contained spaces. Added logging at various levels so that the next time I have to work on this I can figure it out quicker. Normal logging level is log.error which only prints error information. Changing log level to log.info provides much more insight about what is occurring. Fixed gui not returning generated file to film strip.
Bill Ferguson
2018-05-15 01:05:34 -04:00
f961e6aa6b
Replaced dt_print_log = dt.print_error with dt.print_log now that the function exists
Bill Ferguson
2018-05-14 20:30:09 -04:00
5266aa7547
Used a less aggressive quoting strategy that works with check_if_bin_exists, check_if_file_exists, and io.popen().
Bill Ferguson
2018-03-16 12:16:45 -04:00
1c587d3726
Changed wine test to check for .exe"$ or .EXE"$ because of quoting string paths
Bill Ferguson
2018-03-10 13:45:04 -05:00
b4ea97ce37
Fixed accidently wiped out check for macos
Bill Ferguson
2018-03-10 13:38:17 -05:00
83c1a5789a
Changed wine check to operating system isn't windows
Bill Ferguson
2018-03-10 13:07:19 -05:00
841026661a
Removed debugging statement
Bill Ferguson
2018-03-10 12:56:18 -05:00
692441e1d5
Added wine awareness for unix, linux, and macos. Added open -a -W to the macos path so that the path returned by the finder will work correctly.
Bill Ferguson
2018-03-10 12:52:22 -05:00
46ba555a20
* updated to work with new dtutils_file * added checkbox to allow user to launch hugin in gui mode * changed the logic so hugin will write temp files to tmp directory and then move the final result to the directory of original source files. this improves speed when original source files are on network mapped drive * added some additional error messages
Andy Chien
2018-03-05 09:31:34 -08:00
c073ecf0dd
Added check_os to lib/dtutils.lua so that scripts can check compatibility with the current operating system
Bill Ferguson
2018-03-03 20:22:47 -05:00
2ea4db8e38
Added windows and macOS external executable compatibility. Added functions set_executable_path_preference(), get_executable_path_preference(), and executable_path_widget() to lib/dtutils/file.lua to get, set and retrieve the location of executables on windows and macOS systems. Modified check_if_bin_exists to use the path preferences so executables can be found on windows and macOS systems as well as linux. Modified contrib/gimp.lua to use the new functions, thus making it usable on windows and macOS too.
Bill Ferguson
2018-03-02 14:07:29 -05:00
fe942100a4
hugin plugin improvements * added preference requiring user to specify the paths for hugin, hugin_executor and pto_gen needed for this plguin * added preference to allow user to choose to launch hugin in GUI mode * minor fix to the way files are handled; due to some versions of hugin_executor not writing out to the path specified in --prefix, assume we are working in the tmp directory and then move the file afterwards
Andy Chien
2018-02-23 10:07:45 -08:00
4ad9e77a7e
improved a few aspects of the hugin script: * handle stiching all from hugin_executor without the gui * automatically create the panorama file name based on first selected file plus _pano * automatically detects if output file exists, if so use an unique name * delete temporarily exported file
Andy Chien
2018-02-22 16:07:28 -08:00
5d57347730
fixed a couple dtutils_file functions for windows platform
Andy Chien
2018-02-22 16:01:54 -08:00
664496b430
Updated to api 5.0.0 and tested. include_all.lua changed to load official/yield and ignore the lib and tools directories.
Bill Ferguson
2018-01-02 19:51:14 -05:00