enfuse_pro plugin - cross-platform compatible

I’m happy (relieved) to read that you’re working on another update to this great script, Kevin. Are you doing this because, like me, you’ve found that the previous version doesn’t work if it’s called from Bill Ferguson’s likewise-great script “Darktable Lua Script Manager” - it’s still ‘great’ in spite of the misspelling of darktable :wink:

The problem that I’m facing is that “Enabling” your script from Bill’s doesn’t do a thing.

Here’s the debug output:

25.942936 LUA activating enfuse_pro_2-1
25.943260 LUA ERROR : /Users/heviiguy/.config/darktable/luarc:82: attempt to concatenate a nil value (local 'script')
stack traceback:
	[C]: in metamethod '__concat'
	/Users/heviiguy/.config/darktable/luarc:82: in upvalue 'prequire'
	/Users/heviiguy/.config/darktable/luarc:258: in upvalue 'activate'
	/Users/heviiguy/.config/darktable/luarc:298: in function </Users/heviiguy/.config/darktable/luarc:286>
	[C]: in ?

I’m wondering if the problem may have something to do with the fact that I’ve moved your script from the “Contrib” directory to one that I’ve created as “Special”. Other scripts in the latter directory can be enabled without issue.

It’s the dash in the filename that’s causing the problem. It’s a “magic” character in string matching, so script_manager is choking on it. It’s fixed in the latest version of script_manager.

Bill

Thanks, Bill.

I finally got around to pulling my git :stuck_out_tongue_closed_eyes: . Twice :sleeping:

I ran into a problem in that the symlink to my “Special” directory had disappeared after one of the pulls. This meant that I was only able to load from the default ‘contrib’ and ‘official’ directories. Since enfuse_pro is located in my Special directory, I wasn’t able to enable it. However, as soon as I did a …

ln -s /Users/heviiguy/Programs/MacOS/darktable_lua/Special/ / /Users/heviiguy/.config/darktable/lua/Special/

everything behaved as expected. I’ll now note to do this after every new pull.

Your lua magic and your support thereof is appreciated!!

You’re welcome.

I have a color chart on the way, so I’ll see what I can do with the challenge :slight_smile:

This has got me excited! My breath will be bated while I await your script to help produce camera profiles.

Perhaps the process might be helped by referring to somebody who has already jumped through the proverbial hoops. Whereas there are quite a few articles on this subject, I’ve found that for the most part, many are incomplete, misinformed, and some even downright misleading. At the other end, certain articles drown the layperson in a flood of technical jargon which tends to obfuscate the simple goal. There are, however, some which hit the Goldilocks spot. One of the latter which I’ve just come across in my “proper camera profiling quest” is Thomas Sobek’s contribution. In my limited knowledge of the topic, he seems to hit the right spots. Besides, anybody who bases his procedure with Elle Stone’s input has already garnered copious credibility by association :face_with_monocle:

The article: https://tomassobekphotography.co.nz/articles/create-camera-input-profile-with-ColorChecker-Passport.php

I have made some updates to this script to improve its cross-platform compatability and to resolve an issue it had when there were spaces in the filepath. I am also working with the darktable team to get this included in the main lua scripts repository (as such the name has changed from enfuse_pro_2 to enfuseAdvanced). Until then you can find it on my github page. This latest version of the script requires you to have the latest versions of the official lua scripts so be sure to update those as well.

Due to changes made on the back-end side of the code when this is installed any DRI/DFF presets you have saved will be restored to default, so you may want to take note of your settings prior to install if you use that functionality of the plug-in.

updated script

get the latest lua scripts here

I’m sorry, but your script doesn’t work …

LUA ERROR : error loading module 'contrib/enfuseAdvanced' from file '/home/asn/.config/darktable/lua/contrib/enfuseAdvanced.lua':
        /home/asn/.config/darktable/lua/contrib/enfuseAdvanced.lua:133: invalid escape sequence near '"enfuseAdvanced - (Re)Initializing preferences due to script load\c'

Shoot, uploaded the wronger version. New one up in a minute. My bad.

EDIT: “Invalid escape” should be resolved now

Some comments about the code:

  • The script mixes tabs and spaces. You should settle on one and use that.
  • Also there are a lot of trailing spaces
  • I would add support for exiv2 as darktable uses libexiv2. So it is likely that this is already installed.

I happily confirm that enfuseAdvanced is functional on MacOS 10.13.6 (High Sierra).

Thanks for this, Kevin!

1 Like

Hi Hevii_Guy et al,

I’m back with some more (dummy) questions as I’m now running DT on an iMac 5k. I managed to have this Lua script working on windows but on the iMac it’s quite different.
It currently exports no worries and then I get “ERROR: enfuse didn’t work. For more information see terminal output”.
I’m trying to do so as I start DT using “open -a darktable --args -d Lua” or even “all” at the end, but nothing gets printed in the terminal. Again probably a noob thing, my apologies for that, and thanks ahead of time for the support, and this great script :slight_smile:

Could you please let me know which path you indicated for the different tools to be used ?
I have installed exiftool in usr/local/bin
I have found Enfuse in /Applications/Hugin/PTBatcherGUI.app/Contents/MacOS/enfuse
I have found Align_image_stack in /Applications/Hugin/Hugin.app/Contents/MacOS/align_image_stack

Keep up the good work!

Happy New Year, Seb.

I’m using “Hugin Stitch Project” to pull in the enfuse and align_image_stack executables. My locations are as follows:

  • exiftool: /usr/local/bin/exiftool
  • enfuse: /Applications/Hugin/HuginStitchProject.app/Contents/Hugin/enfuse
  • align_image_stack: /Applications/Hugin/HuginStitchProject.app/Contents/Hugin/align_image_stack
1 Like

What an idiot : Happy new year to you guys as well. All the best for this year to come :slight_smile:

I’ll test these path in a sec and let you know ! Thanks a lot for the lightning fast response :slight_smile:

In order to run darktable from the terminal, enter the following (in Terminal):

/Applications/darktable.app/Contents/MacOS/darktable -d lua

Ok. Works better that way indeed. Thanks a lot !

Also with Hugin, it exports and start it but then complains immediately that the project refer to images that are not found :

Screenshot 2019-01-08 at 21.07.20.png

However the exported tif are indeed in that /private/var/blah_blah/T/
I’m drifting a bit from Enfuse, sorry.

Thanks :blush:

Ok, my drive is still NTFS… I’ll address that.

Perhaps because the external HDD is formatted as NTFS? If so, have a look here or here

2 Likes

Yep was that, and fixed now. thanks :slight_smile:

I am using Ubuntu 18.04 and darktable 2.6.2 and want to add the plugin “enfuseadvanced” but until now without success.

Which more files I need to download then “enfuseadvanced.lua”?
In darktable preferences I cannot find the tab “lua options”.
Are there any “step-by-step” tutorial how to install the plugin?

Thanks
Alf

Hi @alfwerner,

Welcome. How did you install darktable? Was it via the snap package? From looking at the snap package, it doesn’t seem like lua is enabled.

1 Like