Gimp-Forum.net

Full Version: Change text size in several text layers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(11-10-2022, 01:50 PM)Antoche Wrote: [ -> ]I'm going to try those scripts but ... questions (because I don't have any knowledge about the Gimp scripts) : 
I understand I have to place the classics scripts under "C:\Program Files\GIMP 2\share\gimp\2.0"
But, the python one too ?

No. For a Windows installation put

Plugins, 'some-name'.exe or 'some-name'.py go in the folder C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\plug-ins
Scripts, 'some-name'.scm put in C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\scripts

Appdata\Roaming is a hidden folder, you might have to 'un-hide' it see: https://support.microsoft.com/en-us/help...windows-10
(11-10-2022, 01:50 PM)Antoche Wrote: [ -> ]
(11-09-2022, 09:56 PM)Ofnuts Wrote: [ -> ]
(11-09-2022, 04:07 PM)rich2005 Wrote: [ -> ]Hmmm... re-inventing the wheel - Saul Goode has a script-fu that might do the job sg-clone-text-attributes.scm



a quick demo: https://i.imgur.com/Pdh9AwW.mp4

Attached, unzip, put in your user-profile scripts folder.

Well, too late, see https://www.gimp-forum.net/Thread-ofn-replace-font Smile

Looking at SG's code, my script has the big advantage to be able to select layers on their current font or font size.

Thanks guys for that material ! Big Grin  
I'm going to try those scripts but ... questions (because I don't have any knowledge about the Gimp scripts) : 
I understand I have to place the classics scripts under "C:\Program Files\GIMP 2\share\gimp\2.0"
But, the python one too ?
Antoche.

Its ok I found it ! under C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins... I'm going to test that ... Angel Big Grin

(11-10-2022, 01:58 PM)rich2005 Wrote: [ -> ]No. For a Windows installation put

Plugins, 'some-name'.exe or 'some-name'.py go in the folder C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\plug-ins
Scripts, 'some-name'.scm  put in C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\scripts

Appdata\Roaming is a hidden folder, you might have to 'un-hide' it see: https://support.microsoft.com/en-us/help...windows-10

Thanks because I was rowing !!!

(11-09-2022, 09:56 PM)Ofnuts Wrote: [ -> ]
(11-09-2022, 04:07 PM)rich2005 Wrote: [ -> ]Hmmm... re-inventing the wheel - Saul Goode has a script-fu that might do the job sg-clone-text-attributes.scm



a quick demo: https://i.imgur.com/Pdh9AwW.mp4

Attached, unzip, put in your user-profile scripts folder.

Well, too late, see https://www.gimp-forum.net/Thread-ofn-replace-font Smile

Looking at SG's code, my script has the big advantage to be able to select layers on their current font or font size.

@Ofnuts, hum... I can see the Picture 1 when I click on "New font name" when the Picture 2 is the dialog I can see on my screen before, and the Picture 3 is my "sand box".
Thanks.
Antoche
This a test in a Windows 10 (VM) and Gimp 2.10.32

Match two linked layers with a separate layer: 30 second animation: https://imgur.com/uiWiSHJ.mp4

and that works.

...the error you get might be language related. I would try selecting a different font than the default 'Sans'
Yes, but in the plug-ins directory : C:\Program Files\GIMP 2\share\gimp\2.0\plug-ins.

Better yet, in Gimp, go to Edit > Preferences > Folders > Plug-ins. This lists two folders, the one above and another in your AppData hierarchy. Put the python file in that one.
Do you ever look at any ones posts ? Sometimes I wonder Wink

That last screenshot shows C:\Users\antoi\AppData\Roaming\GIMP\2.10\plug-ins\ofn-replace-font.py
Maybe a 'quirk' in Windows. Unlikely to occur in regular use. Using the plugin default settings with the 'Sans' font, this does not exist and is replaced by 'Standard' the default fallback font, which I believe is Tahoma. Choose a font before applying the plugin.

[attachment=9008]
Pages: 1 2