Post all Gimp scripts and script writing questions here
Fri Sep 07, 2018 12:09 am
Do you have an old .scm or .py file that no longer runs in GIMP 2.10.6.
Over 90% of the time I found it required no logical change, just CONSTANT NAMES replaced so that GIMP 2.10 will recognize them and run flawlessly.
This plug in is to allow any user to replace their old files with new GIMP 2.10.6 CONSTANTS so that it would run again.
More details here->
https://www.gimplearn.net/viewtopic.php?f=3&t=1714
Fri Sep 07, 2018 12:30 am
Much needed, Tran. About to start my 40 hour work weekend, but I might try using this for the few problematic Script-fus that I have that now won't properly work (or gives errors) in 2.10x. You all have a great weekend.
Fri Sep 07, 2018 12:44 am
Thanks lylejk... hopefullly it's no logical change needed and will magically work for you.
Fri Sep 07, 2018 5:28 am
Thanks Tran. All my scripts (the ones i wrote included) seem to work so far in 2.10. Only problem i am having is with PSPI to run 8BF's.
Fri Sep 07, 2018 7:33 am
Rod, do you mean they already work or did this plug-in help make it work?
I don't know PSPI 8BF's
Fri Sep 07, 2018 9:31 am
That's cool.
I used Notepad++/Geany (replace all) to fix scripts but always miss something.
Still getting errors but this is good help. Thank You
Fri Sep 07, 2018 9:45 am
Notepad++ is awesome I miss it...It used to work for me under Wine, but since I upgrade Ubuntu it seems my Wine is a mess and Notepad doesn't start.
UPDATE: I looked a bit into and got notepad++ now..yeh! Love notepad++
Fri Sep 07, 2018 10:05 am
Nidhogg wrote:That's cool.
I used Notepad++/Geany (replace all) to fix scripts but always miss something.
Still getting errors but this is good help. Thank You
Still getting errors? are they CONSTANT name errors, I'd like to know so I can add them constants if needed.
Sat Sep 08, 2018 2:42 am
Hi
TIN.
I had to test it.
This is very convenient - thanks Tin for sharing.
Thank you also for Auto Complete Constants / pdb. * Functions in NotePad ++ for Coders
I used LayerFX for 2.8 (Python-Fu) for the test:
https://web.archive.org/web/20171124170423/http://gimpscripts.com:80/2011/10/gimp-layer-effects#wpfb-file-35In my system (Win Vista32bit, Gimp 2.10.5) there was a small problem with the layer mode:
- Code:
"Hue", HUE_MODE, -> GIMP10 constantize -> LAYER_MODE_HUE pdb:LAYER_MODE_HSV_HUE_LEGACY
"Saturation", SATURATION_MODE, -> GIMP10 constantize -> LAYER_MODE_SATURATION pdb:LAYER_MODE_HSV_SATURATION_LEGACY
"Color", COLOR_MODE, -> GIMP10 constantize -> LAYER_MODE_COLOR pdb:LAYER_MODE_HSL_COLOR_LEGACY
"Value", VALUE_MODE -> GIMP10 constantize -> LAYER_MODE_VALUE pdb:LAYER_MODE_HSV_VALUE_LEGACY
LayerFX-2.10.py it certainly needs improvement - it does not work "Reapply Effects" (I do not understand how to fix it - so if someone does not fix it, you can definitely remove this piece of code) , but for the brave testers the file is attached.
Attachment removed - attached layerfx.py plugin contained a bug as indicated in thread #18
Sat Sep 08, 2018 4:16 am
trandoductin wrote:Nidhogg wrote:That's cool.
I used Notepad++/Geany (replace all) to fix scripts but always miss something.
Still getting errors but this is good help. Thank You
Still getting errors? are they CONSTANT name errors, I'd like to know so I can add them constants if needed.
No...CUSTOM can't be CONSTANT?
APPLY & VALUE-LUT also gave me the headache.
But I'm learning, got gc-shadow script fixed yay!
I'm just wondering if it would be better to get myself familiar with .py if .scm is getting deprecated.
Sat Sep 08, 2018 9:28 am
I highly recommend getting familiar with .py.
If you don't know anything you can just look it up and all over the internet. .scm was so hard to find documentation on I find.
Wed Sep 26, 2018 5:50 am
trandoductin wrote:Rod, do you mean they already work or did this plug-in help make it work?
I don't know PSPI 8BF's
PSPI is a plugin to run adobe plugins in GIMP.
I didn't use your script (plugin) I don't seem to need it.
Wed Sep 26, 2018 9:46 am
Nidhogg wrote:I'm just wondering if it would be better to get myself familiar with .py if .scm is getting deprecated.
Script-fu is unfortunately there to stay, but this isn't a good reason to keep using it. Python is easier to learn (it is taught as a beginner's language in many universities), will let you do more things with Gimp (the Python API is a superset of the script-fu one), and can be used for other things outside of Gimp (for instance, it is also the script language for Inkscape, Scribus and PaintShop Pro, to mention only other grahics editors).
In recent statistics(*) Python is the 4th most popular programming language and
given its growth it can become the topmost one.
(*) You will also notice that in all these statistics, Lisp/Scheme/Script-fu is not even on the radar screen.
Fri Sep 28, 2018 9:10 am
This is an insane graph for python.
Sun Dec 16, 2018 3:45 am
Yeah I didn't have any experience/knowledge about python. All I did was some super basic...basic with C64 haha.
But, finally the code bug bit and I decided to grab the bull by the horns and begun to learn. There's been lot of talk about coding and how useful it can be, even if one wouldn't transmogrify into a total nerd.
Was bit worried about math...never found it interesting in school for some reason, which is strange because I really liked chemistry and physics. Plus I don't have higher level education. Been going through the beginner lessons they have online versions of at python.org, and so far going good.
Sun Dec 16, 2018 5:34 am
ofnuts wrote:
Script-fu is unfortunately there to stay, but this isn't a good reason to keep using it. Python is easier to learn (it is taught as a beginner's language in many universities), will let you do more things....
I will be even better when it is not necessary to shut Gimp down to use one of those little used plug-ins. Which of course you can do with script-fu.
Thu Dec 20, 2018 11:47 am
Script-fu you have to refresh script after each change.
With Python, once you have the script and its parameters and menu registration in place, you can go to town with editing without the need to refresh scripts.
Tue Aug 18, 2020 11:43 am
Hi Tin.In your very useful plugin I found one bug regarding masks:
Old gimp mask:
- Code:
ADD_ALPHA_TRANSFER_MASK
after using constantize:
- Code:
ADD_MASK_ALPHA_MASK_TRANSFER
For gimp10 mask when the correct record is:
- Code:
ADD_MASK_ALPHA_TRANSFER
Best wishes.
Wed Aug 19, 2020 5:24 am
Hi Marero,
You could put your scrip update here:
https://gimplearn.net/viewtopic.php?f=3&t=1714&start=20Tim (tin) is active on that forum. He hasn't been at Gimp Chat for awhile.
Thu Aug 20, 2020 1:28 am
Hi
Tas_mania - I am not a GIMP LEARN user.
Temporarily (until the new version is published by Trandoductin) I am posting a correction of 5 errors mentioned in the post #9 and #18.
This version in menu Gimp: Tools/GIMP10 constantize...
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.