Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python scripting: image update and calling strategies
#2
a) plugins do not have access to the UI (this is conscious design decision, AFAIK), so you can't currently make a plugin that updates the layer in real time. Best you can do is update a preview in some window managed by your plugin (PyGTK).

b) If the files are in the same directory, one can import the other. If both files are Gimp plugins, both appear in the PDB, so you can call one from the other using pdb.python_fu_my_plugin_atom() if you registered the plugin as my-plugin-atom. You may want to define returned values in your plugins if you do so.
Reply


Messages In This Thread
RE: python scripting: image update and calling strategies - by Ofnuts - 12-29-2020, 06:20 PM

Forum Jump: