Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp Python Fu Problems
#3
To explain my problem more clearly. This is just a example.
Code:
register(
    "abc",
    "",
    "",
    "Andrew Sears",
    "Andrew Sears",
    "2018",
    "abc",
    "",
    [
    (PF_IMAGE,"CurrentImage","Image", None),
    (PF_DRAWABLE, "Drawable", "Input drawable", None),
    (PF_OPTION, "Selector", "", 0, [""])
    ],
    [
    (PF_OPTION, "Selection", "")
    ],
    abc,
    menu="<Image>/Filters",
    domain=None,
    on_query=None,
    on_run=None
)

main()

with (open("Procedure List.txt", "a+")) as Text:
    Text.write(str(dir(gimp.pdb)))   
                                  

From what I understand gimp goes over this at startup and registers the function and runs anything else. What i'm interested in is accessing the procedure database at the end of the file when gimp first runs , but when I try to access pdb anywhere outside of my registered function within the plugin, the plugin crashes. I could have a secondary procedure that is called by this script and does this for me, but I would rather have a different solution. Hope this helps helps explain more clearly what i'm trying to achieve.
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: