12-19-2023, 10:24 AM
Hello, I wonder if there is a way in script-fu that can do the same job of the filters -> disorts -> curve bend.
Script-Fu
|
12-19-2023, 10:24 AM
Hello, I wonder if there is a way in script-fu that can do the same job of the filters -> disorts -> curve bend.
12-19-2023, 10:46 AM
(12-19-2023, 10:24 AM)Alan Wrote: Hello, I wonder if there is a way in script-fu that can do the same job of the filters -> disorts -> curve bend. You can use plug-in-curve-bend() If you go to Filters/Script-Fu/Console/Browse and type "bend" (no quotes) into the search box it will give you details of the required parameters.
12-20-2023, 07:42 AM
(12-19-2023, 10:46 AM)programmer_ceds Wrote:(12-19-2023, 10:24 AM)Alan Wrote: Hello, I wonder if there is a way in script-fu that can do the same job of the filters -> disorts -> curve bend. Where do I get these points in the parameters? (12-20-2023, 07:42 AM)Alan Wrote: Where do I get these points in the parameters?[/color] It will be in Yellow or Red => which depend about what you chose in Green (curve-type), the number of point is also explained in Green if you put 0 in green, you can use up to 17 points in Yellow, with coordinates all using arrays if you put 1 in Green, you can put up to 256 points in Red, with coordinates all using arrays Arrays > https://stackoverflow.com/questions/4309...-script-fu or https://docs.racket-lang.org/array/index.html
Patrice
Try to put an integer (0 / 1) where it's written INT32 instead of the Boolean value (true / false)
explanation in the procedure browser can be.... what we don't expect Also use the curve bend and save the curve (on your desktop) to look into it (with a text editor) might help with what is written I got this in the file.point # there are upto 17 points where unused points are set to -1 I might be wrong, I'm not good with TinyScheme and I don't know this filter in a coding way Code: POINTFILE_CURVE_BEND for this curve
Patrice
12-21-2023, 08:47 AM
(12-20-2023, 06:10 PM)PixLab Wrote: Try to put an integer (0 / 1) where it's written INT32 instead of the Boolean value (true / false)i have fixed the int32 params but still can't get a result from the script-fu, and i can't be making the image curvy and save it because i may change this image so it'ts not a practical way to use the script anymore. My old script paste an image to the specified layer but i want to make it look real using the curve bend. Also I can't find any documentation about this operation how to use it in script-fu.
12-21-2023, 08:52 AM
If you go here: https://www.gimp-forum.net/Thread-Flatte...5#pid37075
You will find a script-fu curve-bend-between-paths that is a 'front-end' for the curve-bend plugin. There should be a few hints on use inside the script.
12-25-2023, 09:29 AM
(12-21-2023, 12:22 PM)Alan Wrote: And is there a way to prepare an xcf file that has a layer assigned to be curved so any image pasted image to this layer will be curved? Looks like the "smart" object in photoshop, where you change the layer by another pic, all "smart" filters assigned to that layer will be applied to that new pic/layer GIMP is not "smart" enough , on the other-hand Krita has some "Filters' layer" and other similar "smart object", you can do your script in Python, but not sure with Scheme
Patrice
Maybe more for an ImageMagick script than a Gimp script / plugin
Scale, then deform an image, then plant on the front of a mug image. Certainly not trivial to deform but there is a script for linux / macos http://www.fmwconcepts.com/imagemagick/cylinderize/ see the coffee cup examples
12-27-2023, 09:25 AM
Is there any option that we create a new layer that has the curvy shape and save it as xcf so any image pasted to this layer will look curvy?
I did it with the plug-in-curve-bend but it takes a lot of data which is not practical. If there is any easier way please let me know and thank you in advance. |
« Next Oldest | Next Newest »
|