Encountered another problem where my hacked tools button version of the script would run twice. Searching through the forum revealed a helpful post from synthsin75 which explained, "Also, if you're using Windows, scripts that immediately open a dialog will run twice if used as a button. Just cancel the second time it runs." (
http://www.lostmarble.com/forum/viewtopic.php?t=12830 ). Okay. The simplest way of reworking the script was to split it into two tools:
- One button to simply open the current image layer in GIMP to "edit in place", and then...
- One button to refresh the current image layer as and when it gets saved externally.
It's a bit more accessible, and less naggy now. The script name change reflects the different functionality, since Rylleman's original is fine as it is. These scripts have only been tested on Windows, but I've kept Rylleman's OS-sensitive code, so it
should work cross-platform as before.
How to install the scripts
The two tools scripts and two associated icons are zipped here (link updated for easier downloading):
http://www.mediafire.com/file/lqzjjzjzjqe
After downloading, extract the four files to your scripts/tool subfolder. Then update _tool_list.txt as shown below. I added them under the "group Layer" section, since they work with image layers:
- Code: Select all
button nh_open_in_gimp ...
button nh_reload_image ...
If the two buttons don't sit nicely next to each other, you can add a button spacer to _tool_list.txt, for example:
- Code: Select all
spacer
button nh_open_in_gimp ...
button nh_reload_image ...
How to use the scripts
- Use the "Open in GIMP" button to open the current image in GIMP. Edit away in GIMP, while totally free to continue working with AS. (If GIMP doesn't open, check the application path in the script on lines 59 & 61.)
- Use the "Reload image" button to simply refresh the current image layer. Doesn't matter how or where the image was edited.