Compare commits

..

7 commits

Author SHA1 Message Date
92761ec090
change 2>log_err.txt to 2>&1
redicrects the sterr to stdout so it can all be in the same file
2023-06-07 17:04:40 +02:00
6ac163b207
fix windows require statement
The quotes would push 
```lua
"require 'tools/script_manager'"
```
instead of
```lua
require 'tools/script_manager'
```
to the file
2023-06-07 14:57:01 +02:00
b391509be6
Update troubleshooting.md
Added `2> log_err.txt` to the command and explained what it does. This is necessary as stderr will otherwise get outputted to the console instead of the file.
2023-06-07 14:48:27 +02:00
wpferguson
01c6453c10
Merge pull request #6 from kofa73/patch-1
Fixed URL to git's home site
2023-05-07 10:33:45 -04:00
Kofa
ff3159345f
Fixed URL to git's home site 2023-05-07 09:46:36 +02:00
Bill Ferguson
7782b810cc Updated dt_lua_image_t.generate_cache to match the way the code works. 2022-02-17 17:08:01 -05:00
Bill Ferguson
fee1e00da6 Added documentation for contrib/rename_images 2022-01-12 16:33:41 -05:00
7 changed files with 48 additions and 83 deletions

View file

@ -442,14 +442,14 @@ darktable will regenerate the thumbnail by itself when it is needed.
``` ```
self.function( self.function(
check_dirs : boolean check_dirs : boolean
start_size : integer min_size : integer
end_size : integer max_size : integer
) )
``` ```
* **self** - _[types.dt_lua_image_t](../types/dt_lua_image_t)_ - The image whose cache is to be generated. * **self** - _[types.dt_lua_image_t](../types/dt_lua_image_t)_ - The image whose cache is to be generated.
* **check_dirs** - _boolean_ - check if the mipmap cache directories exist. Create them if necessary. * **check_dirs** - _boolean_ - check if the mipmap cache directories exist. Create them if necessary.
* **start_size** - _integer_ - mipmap size to generate first * **min_size** - _integer_ - minimum mipmap size to generate
* **end_size** - _integer_ - mipmap size to generate last * **max_size** - _integer_ - maximum mipmap size to generate
**NOTES:** **NOTES:**
* mipmap cache image sizes * mipmap cache image sizes
@ -464,6 +464,5 @@ self.function(
- 8 - full resolution - 8 - full resolution
* To generate a single size mipmap image set start_size and end_size to the same value * To generate a single size mipmap image set start_size and end_size to the same value
* When generating multiple sizes put the largest size as the start size and the smallest as the end. * When different min_size and max_size sizes are specified, every size mipmap from min_size to max_size is generated.
* When different start and end sizes are specified, every size mipmap from start to end is generated.
* When looping over a set of images and generating just one size, check for directories on the first image only. * When looping over a set of images and generating just one size, check for directories on the first image only.

View file

@ -8,17 +8,5 @@ author: "people"
# Current API # Current API
The Lua API version used in darktable 4.4.0 is 9.1.0. The Lua API version used in darktable 3.8.0 is 8.0.0.
Previous API versions were
- darktable 4.2.x - Lua API 9.0.0
- darktable 3.8.x - Lua API 8.0.0
- darktable 3.6.x - Lua API 7.0.0
- darktable 3.2.x - Lua API 6.0.0
- darktable 2.4.x - Lua API 5.0.0
- darktable 2.2.x - Lua API 4.0.0
- darktable 2.0.x - Lua API 3.0.0
- darktable 1.6.1 - Lua API 2.0.2
- darktable 1.6.0 - Lua API 2.0.1

View file

@ -60,9 +60,9 @@ The recommended way to enable and disable specific scripts is using the script m
echo 'require "tools/script_manager"' > ~/.config/darktable/luarc echo 'require "tools/script_manager"' > ~/.config/darktable/luarc
### Windows ### Windows ( via command prompt )
echo "require 'tools/script_manager'" > %LOCALAPPDATA%\darktable\luarc echo require 'tools/script_manager' > %LOCALAPPDATA%\darktable\luarc
### Snap ### Snap

View file

@ -0,0 +1,37 @@
---
title: rename_images
id: rename_images
weight: 275
draft: false
author: "people"
---
## Name
rename_images.lua - rename one or more image files
## Description
Rename an image or images according to a pattern built by
the user. It is possible to specify a different directory
in the rename pattern, which will result in a move as well as
a rename. The database will be updated to reflect the new
name/location of the image.
## Usage
* require this script from your luarc file or start it from script_manager
* select an image or images
* enter a renaming pattern
* click the button to rename the files
## Additional Software Required
## Limitations
## Author
Bill Ferguson - wpferguson@gmail.com

View file

@ -1,59 +0,0 @@
---
title: x-touch
id: x-touch
weight: 120
draft: false
author: "people"
---
## Name
x-touch.lua - use an X-Touch Mini controller with darktable
## Description
This script will create virtual sliders that are mapped dynamically to
the most relevant sliders for the currently focused processing module.
Tailored modules are color zones, tone equalizer, color calibration and
mask manager properties. The script can easily be amended for other
devices or personal preferences. Virtual "toggle" buttons can be created
as well, that dynamically change meaning depending on current status.
## Usage
* require this script from your luarc file or start it from script_manager
* restart darktable if using the luarc file
* create shortcuts for each of the encoders on the x-touch mini
to a virtual slider under lua/x-touch
or import the following shortcutsrc file in the shortcuts dialog/preferences tab:
```
None;midi:CC1=lua/x-touch/knob 1
None;midi:CC2=lua/x-touch/knob 2
None;midi:CC3=lua/x-touch/knob 3
None;midi:CC4=lua/x-touch/knob 4
None;midi:CC5=lua/x-touch/knob 5
None;midi:CC6=lua/x-touch/knob 6
None;midi:CC7=lua/x-touch/knob 7
None;midi:CC8=lua/x-touch/knob 8
midi:E0=global/modifiers
midi:F0=global/modifiers;ctrl
midi:F#0=global/modifiers;alt
midi:G#-1=iop/blend/tools/show and edit mask elements
midi:A-1=iop/colorzones;focus
midi:A#-1=iop/toneequal;focus
midi:B-1=iop/colorbalancergb;focus
midi:C0=iop/channelmixerrgb;focus
```
## Additional Software Required
## Limitations
## Author
Diederik ter Rahe
## Change Log

View file

@ -51,7 +51,7 @@ and _tools_ containing tools for managing the lua scripts.
## Additional Software Required ## Additional Software Required
git - wwww.git.org - git is used to install and update the scripts. script_manager will still run if git is not installed or accessible, but installing and updating scripts will not be possible. git - [git-scm.com](https://git-scm.com/) - git is used to install and update the scripts. script_manager will still run if git is not installed or accessible, but installing and updating scripts will not be possible.
## Limitations ## Limitations

View file

@ -22,4 +22,4 @@ Open a terminal and start darktable with the command `/Applications/darktable.ap
### Windows ### Windows
Open a command prompt. Start darktable with the command "C:\Program Files\darktable\bin\darktable" -d lua > log.txt. This provides debugging information to give you insight into what is happening. Open a command prompt. Start darktable with the command `"C:\Program Files\darktable\bin\darktable" -d lua > log.txt 2>&1`. This provides debugging information to give you insight into what is happening.