Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,359
» Latest member: Allex
» Forum threads: 6,662
» Forum posts: 36,313
Full Statistics
|
|
|
Troubles with guide position |
Posted by: alvk - 11-05-2022, 12:19 AM - Forum: Scripting questions
- Replies (5)
|
|
Hello everyone!
I'm using gimp to make figures for my scientific papers. Often I need to place a guide in a certain position relative to a selected layer. I'm trying to write a pretty simple script, that do the job. However, I have a problem with it. I want to have a checkbox, with indicates whether the guide should be placed within the selected layer or not. But it doesn't work. Every time, the script return negative value for guide position. If I have a multilayer image, this means that the guide is placed outside the active layer, regardless of the state of the checkbox. If I have a single layer image, I get an error, that the guide is outside the image. Could anyone help me to solve this problem? The full script is below. Thank you!
Code:
(define (script-fu-custom-guide image
drawable
orientation
position
in_toggle)
(let* (
(lwidth (car (gimp-drawable-get-width image)))
(lheight (car (gimp-drawable-get-height image)))
(offx (car (gimp-drawable-get-offsets drawable)))
(offy (cadr (gimp-drawable-get-offsets drawable)))
(if (= in_toggle TRUE) (position (* -1 position)))
(guide_position
(cond ((= orientation 0) (- offx position)) ; guide on left
((= orientation 1) (+ offx lwidth position)) ; guide on right
((= orientation 2) (- offy position)) ; guide on top
((= orientation 3) (+ offy lheight position)) ; guide on bottom
)
)
)
(if (< 1 orientation)
(gimp-image-add-hguide image guide_position)
)
(if (> 2 orientation)
(gimp-image-add-vguide image guide_position)
)
(gimp-displays-flush)
)
)
(script-fu-register "script-fu-custom-guide"
_"_Custom guide"
_"Adds a vertical or horizontal guide to the image"
""
""
""
"*"
SF-IMAGE "Input image" 0
SF-DRAWABLE "Input drawable" 0
SF-OPTION _"_Orientation" '(_"Left" _"Right" _"Top" _"Bottom")
SF-ADJUSTMENT _"_Position" (list 20 0 MAX-IMAGE-SIZE 1 10 0 1)
SF-TOGGLE _"Within a layer?" FALSE
)
(script-fu-menu-register "script-fu-custom-guide"
"<Image>/Figures")
|
|
|
Plugin Darktable |
Posted by: benoit - 11-04-2022, 07:24 PM - Forum: Installation and usage
- No Replies
|
|
Hello
The interoperability feature with Darktable, which allows to open a RAW file in Darktable from Gimp, does not work.
Gimp is not able to open the RAW file modified by Darktable.
Here is the error window:
--------------------------------------------------------
GIMP Message :
Calling error for procedure 'gimp-file-load':
Error opening file '/tmp/gimp/2.10/gimp-temp-253451.exr' for reading
GIMP Message
Opening '/home/benoit/RAW/D7100/DCIM/111D7100/NII_2044.NEF' failed:
Raw Nikon plug-in could not open image
--------------------------------------------------------
I am running Debian GNU/Linux
My Darktable version: 4.0.1
Of Gimp : 2.10.22
I specify that it works on another computer under Debian GNU/Linux in Testing, therefore with other versions of Gimp and Darktable.
Thanks in advance
--
Benoit
|
|
|
Installing Third Party plugins in GIMP |
Posted by: Laco - 11-03-2022, 11:59 AM - Forum: Extending the GIMP
- Replies (4)
|
|
I am new to the forum and new to GIMP.
I tried researching the subject of how to install plugins in GIMP, but every tutorial I could find was in reference to GIMP plugins only—plugins designed specifically for GIMP. Can anyone tell me if third party plugins can be installed in GIMP? Specifically, I am wanting to use Topaz Photo AI as a plugin in GIMP.
I know how to find the GIMP plugins folder, but I don’t know which part of the Topaz Photo AI folder to put in there.
|
|
|
What is Gimp's equivalent of "Clip to Layer Below"? |
Posted by: abvieon - 11-02-2022, 11:25 PM - Forum: General questions
- Replies (2)
|
|
Hi, I'm brand new to using Gimp. Before this I mainly used Clip Studio Paint, which has a feature called clip to layer below. It allows you to make a layer you can clip to another layer, anything you draw on the clipped layer will only show up on the layer underneath. It's useful if you want to change your lineart to a different color, for example. Does Gimp have anything that allows me to do this?
|
|
|
|