Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp Python Fu Problems
#6
What prevents you from gathering the data while building the dialog? Keep in mind that each execution of the plugin is going to be a new process, so you cannot keep this across calls; each time the plugin is started, it has to go through that code again.

In any case you don't need a secondary procedure, if you want to keep the code distinct, it just has to be in a Python function.

It seems possible to run the PDB scan in the __main__ if you find a way to distinguish the registration execution from the plugin calls and avoid running the code in the first case. There lay be a way with the more explicit registration functions, but IMHO this is going to great lengths to do something which isn't such a good idea.
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: