It is currently 05 Mar 2021, 13:02

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | 🡆 Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Set Render/Pattern/Sinus Permanently to FG and BG Colors

Post your Script Requests for GIMP here.
Forum rules
Request your Script(s) for GIMP here in this forum.
Provide details of steps performed in GIMP so that script can be written for the process and also give the request a name so that scripts can be named after.
User avatar
Lenny
Guests

Set Render/Pattern/Sinus Permanently to FG and BG Colors

Post#1 by Lenny » 17 Apr 2020, 06:12


Tin,

I saw your script to set the colorize default color permanently ( viewtopic.php?p=29685#p29685 ).

Downloaded it and tried to figure it out, but no. Can you modify this script to open Sinus and change the default colors in the Render/Pattern/Sinus dialog box to Foreground and Background colors, then allow me to set the other settings to finalize sinus? Or, would all the settings for sinus need to be chosen when the modified script is run? You also mentioned you could make the change stick after the first time it is run.

I found the sinus plug-in in the pdb browser and saw that under "colors," you can choose "1" for FG/BG, but I don't yet know how to implement python. All the other options for that plug-in show up on the sinus dialog box, except that choice.

I always set my FG and BG colors before opening sinus, then click on the color yellow color bar, then use the eye-dropper in the pop-up to choose FG from the little FG color box in the toolbox, then repeat with the blue color bar for the BG color.
GIMP Learn rocks...

rich2005
GIMP Guru

Post#2 by rich2005 » 19 Apr 2020, 11:31


No replies? Your wish is not possible, at least not without altering the Gimp source code.
That other post is about a python script. So that is editable. The current Gimp 2.10.x sinus is a GEGL function, not editable.

While the Gimp 2.10 GEGL functions are annoying in that settings are not retained even during the same session, never mind when Gimp is first opened, they do have a Preset function.
Better than nothing, set up your favourite colours and save as a preset.

Image

An alternative is 'borrow' the Gimp 2.8 sinus plugin (a compiled plugin, not a script) which has a "use FG/BG" option but then you lose the GEGL on canvas rendering. This a Gimp 2.10.18

Image

User avatar
Lenny
Guests

Post#3 by Lenny » 19 Apr 2020, 19:12


Thanks @rich2005, as usual, you have reasoned advice. It's always great when the graphics are included for those of us who find that visuals aid in learning.

"Your wish is not possible." I grew up in the 60s with a TV show called "I Dream of Jeannie," which was more along the lines of "Your wish is my command." Where's Barbara Eden when you need her?

I had discovered the presets, which I have been using for reworking this project, as it does indeed store the FG/BG colors. Because I shall have many of these projects in various colors, the color choosing would be nicer with the FG/BG button. Losing the on-canvas GEGL rendering would probably be a much greater loss. It's a shame the two versions can't be merged.

From your answer, I'll assume that all functions also having a canvas rendering function are also GEGL. I notice a small preview thumbnail on the 2.8 sinus version, which may work well enough. I can't remember if I ever used the sinus function in 2.8. I think I was still doing mostly old photo touch up/repair.

Would you share the 2.8 plug-in, or provide a safe link?
GIMP Learn rocks...

rich2005
GIMP Guru

Post#4 by rich2005 » 19 Apr 2020, 19:44


Assuming you have a Windows 64 bit operating system (always dangerous assuming anything ;) )

Unzip the attachment, put sinus.exe in your User plugins folder.

GEGL filters have a (G) icon in the menus, separate plugins have the 'wheels' icon. That means you have a choice which to use.

Image
Attachments
sinus.zip #
(28.37 KiB) Downloaded 85 times

User avatar
Lenny
Guests

Post#5 by Lenny » 20 Apr 2020, 20:04


Thanks @rich2005, for the legacy sinus plug-in. Installed it and am playing with it. The GEGL sinus distorts to a much greater level, all the way to colored noise, so I'll have to play around with the old version and make note of the settings for x, y, and complexity which are most similar to the GEGL settings I use.

I paid no attention to the G next to the filters. Had I noticed it, I would have assumed it was for GIMP.
GIMP Learn rocks...


GIMP/GL:  Tutorials | Tips | Questions | Interests | 🡆 Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests