Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selection and canvas bounds?
#10
(06-27-2021, 05:58 PM)Ottia Tuota Wrote: But the idea is that the user would choose which part of the path should be manipulated and which part should be kept as it is. That information should be passed to the plugin, and I wanted to use a selection for that purpose. But if the selection is always bounded by the canvas, all out-of-canvas anchors are out of reach. And the user may want some of those out-of-canvas anchors to be manipulated and some others not.

In your plugin, you can just tell the user that everything outside the canvas cannot be manipulated, and if they want to manipulate the control points outside the canvas they need to temporarily increase the size of the canvas a bit like this plugin (for the help):

   

I found this (see the code below) in the plugin's code, if it can help to write the help (it seems that you don't need to put the octothorp (pound sign, hash), IMHO it's ugly and disturb the reading Big Grin Big Grin )

Code:
register(
    "python-fu-bd", # name
    _(u'''Comic Book
# If black specks bother you in the result, try "despeckle" (Be careful, this generally gives a bad result on buildings).
# If double lines bother you in the result, try "brightness" in "edge desaturation method" (by decreasing a little "parasitic suppression").
# If jagged lines bother you in the result, try "antialias at every flattening" (decreasing strongly "antialias").
# If you want more computer style traits, set "antialias" to 0.
# If you don't like the color change, set "saturation increase" to 0.
# If some colors have rubbed off on neighboring areas, try decreasing "final flattening".
    '''),

(the plugin is there if you want to take a look at the source > https://www.gimpscripts.net/2021/04/phot...lugin.html )

If the user is aware that s/he cannot select the control point outside of the canvas, but s/he can increase the size of the canvas to reach those control point, the user will be happy and should never complain that's it's "not" working Wink
Reply


Messages In This Thread
Selection and canvas bounds? - by Ottia Tuota - 06-27-2021, 09:47 AM
RE: Selection and canvas bounds? - by PixLab - 06-27-2021, 10:48 AM
RE: Selection and canvas bounds? - by rich2005 - 06-27-2021, 11:25 AM
RE: Selection and canvas bounds? - by Ofnuts - 06-27-2021, 12:06 PM
RE: Selection and canvas bounds? - by Ottia Tuota - 06-27-2021, 12:17 PM
RE: Selection and canvas bounds? - by PixLab - 06-27-2021, 02:06 PM
RE: Selection and canvas bounds? - by Ottia Tuota - 06-27-2021, 02:39 PM
RE: Selection and canvas bounds? - by denzjos - 06-27-2021, 03:46 PM
RE: Selection and canvas bounds? - by Ottia Tuota - 06-27-2021, 05:58 PM
RE: Selection and canvas bounds? - by PixLab - 06-28-2021, 05:00 AM
RE: Selection and canvas bounds? - by Ottia Tuota - 06-28-2021, 07:18 AM

Forum Jump: