Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripts do not appear in menu
#1
Hi, i'm using Gimp 2.10 on ubuntu-based linux.

I'm trying to follow this guide on how to get started with GIMP scripting, but when I save the .py file in the scripts folder or the plug-ins folders nothing happens.

When I restart GIMP I don't see the option to run that script in the menu.
I've also tried downloading other scripts from the internet, put them in the scripts folder and plug-ins folder, and same thing, they don't appear in the menu.


Am I doing something wrong?
This is the script's code, which I copied from the tutorial:


Code:
#!/usr/bin/python

from gimpfu import *

def first_plugin(timg, tdrawable):
 print "Hello, world!"

register(
 "hello_world",
 "Presents a Hello, World! message",
 "Presents a Hello, World! message",
 "Brad Jones",
 "Brad Jones",
 "2017",
 "<Image>/Image/Hello, World!",
 "RGB*, GRAY*",
 [],
 [],
 first_plugin)

main()


It's from 2017, so maybe it's not compatible anymore?

Thanks for the help guys.
Reply


Messages In This Thread
Scripts do not appear in menu - by MQ95 - 02-04-2021, 02:09 PM
RE: Scripts do not appear in menu - by tmanni - 02-04-2021, 02:26 PM
RE: Scripts do not appear in menu - by MQ95 - 02-04-2021, 02:52 PM
RE: Scripts do not appear in menu - by Kevin - 02-04-2021, 02:30 PM
RE: Scripts do not appear in menu - by tmanni - 02-04-2021, 03:04 PM
RE: Scripts do not appear in menu - by MQ95 - 02-04-2021, 03:29 PM
RE: Scripts do not appear in menu - by Ofnuts - 02-04-2021, 03:41 PM
RE: Scripts do not appear in menu - by tmanni - 02-04-2021, 03:51 PM
RE: Scripts do not appear in menu - by rich2005 - 02-04-2021, 03:54 PM
RE: Scripts do not appear in menu - by MQ95 - 02-04-2021, 04:22 PM

Forum Jump: