Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp Python Fu Problems
#4
On my system, there is no crash but the code hangs indefinitely in the dir(pdb) call. Note that the PDB doesn't really exists until all the scripts and plugins have been registered, which isn't the case when your code runs.

In addition, the whole Gimp environment may not be complete at that point since Gimp itself is initializing.

What are you trying to achieve?

Edit: Changing the code to this:

Code:
def hook(name):
    print "Running the hook..."
    print dir(pdb)
    return name

register(
    hook(abc),
    "",
    "",
    "Andrew Sears",
    "Andrew Sears",
    "2018",

to sneak a function inside the register() code elicits:

Quote:(process:14143): LibGimpBase-ERROR **: gimp_wire_write_msg: the wire protocol has not been initialized

so obviously you can't expect complete Gimp functionality here.
Reply


Messages In This Thread
Gimp Python Fu Problems - by ajs52698 - 09-15-2018, 01:25 AM
RE: Gimp Python Fu Problems - by Ofnuts - 09-15-2018, 07:39 AM
RE: Gimp Python Fu Problems - by ajs52698 - 09-15-2018, 07:10 PM
RE: Gimp Python Fu Problems - by Ofnuts - 09-15-2018, 08:12 PM
RE: Gimp Python Fu Problems - by ajs52698 - 09-15-2018, 08:31 PM
RE: Gimp Python Fu Problems - by Ofnuts - 09-15-2018, 09:38 PM
RE: Gimp Python Fu Problems - by ajs52698 - 09-16-2018, 06:54 PM
RE: Gimp Python Fu Problems - by Ofnuts - 09-16-2018, 08:03 PM

Forum Jump: