Gimp-Forum.net
[Solved] Variables & math in entry widgets? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: [Solved] Variables & math in entry widgets? (/Thread-Solved-Variables-math-in-entry-widgets)



[Solved] Variables & math in entry widgets? - jules - 01-20-2017

Hello there,

I use calculations when, for example, I'm feathering a selection (e.g., 1800/3). And that works great.

But I'm wondering is there a variable that gives me the height or width of the image so that I don't have to enter that it's 1800, 5100, etc.  I'd like to be able to put in the feather selection input widget something like - HEIGHT/3 or WIDTH/3 or MAX_DIMENSION/3.  Is this possible?

Are there variables that you can use in the maths in entry widgets?

Many thanks,
Jules


RE: Variables & math in entry widgets? - rich2005 - 01-20-2017

I am sure one of the clever guys will be along to give a definitive answer, however logic would say that the entry dialog is looking for a value to feed into just such a variable as you want to use. So you need a numeric value.

Have you tried copy / paste using the measure tool? You can copy/paste (ctrl-c/ctrl-v) from one dialog to the other.

[attachment=230]

of course you can also copy/paste from tool options as well for more regular shape selections.


RE: Variables & math in entry widgets? - Ofnuts - 01-20-2017

There are no variables as far as I know, so Rich's answers is a good as it gets.


RE: Variables & math in entry widgets? - jules - 01-20-2017

Excellent idea - many thanks for the quick responses - much appreciated.

Cheers,
Jules