|
| 1 | +--[[ |
| 2 | + This file is part of darktable, |
| 3 | + copyright (c) 2017 Tobias Jakobs |
| 4 | + darktable is free software: you can redistribute it and/or modify |
| 5 | + it under the terms of the GNU General Public License as published by |
| 6 | + the Free Software Foundation, either version 3 of the License, or |
| 7 | + (at your option) any later version. |
| 8 | + darktable is distributed in the hope that it will be useful, |
| 9 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | + GNU General Public License for more details. |
| 12 | + You should have received a copy of the GNU General Public License |
| 13 | + along with darktable. If not, see <http://www.gnu.org/licenses/>. |
| 14 | +]] |
| 15 | + |
| 16 | +--[[ |
| 17 | +Print Examples |
| 18 | +prints "hello world when DT starts |
| 19 | +USAGE |
| 20 | +* require this file from your main lua config file: |
| 21 | +]] |
| 22 | +local dt = require "darktable" |
| 23 | +dt.configuration.check_version(...,{5,0,0}) |
| 24 | + |
| 25 | +-- Will print a string to the darktable control log (the long |
| 26 | +-- overlayed window that appears over the main panel). |
| 27 | +dt.print("print") |
| 28 | + |
| 29 | +-- This function will print its parameter if the Lua logdomain is |
| 30 | +-- activated. Start darktable with the "-d lua" command line option |
| 31 | +-- to enable the Lua logdomain. |
| 32 | +dt.print_error("print error") |
| 33 | + |
| 34 | +-- This function will print its parameter if the Lua logdomain is |
| 35 | +-- activated. Start darktable with the "-d lua" command line option |
| 36 | +-- to enable the Lua logdomain. |
| 37 | +dt.print_log("print log") |
| 38 | + |
| 39 | +-- |
| 40 | +-- vim: shiftwidth=2 expandtab tabstop=2 cindent syntax=lua |
0 commit comments