MareroQ wrote:
@Jean-Marc68.
- you can not call another skript-fu from the skript-fu (this is understandable because only one can act actively),
- python plugin can not call another Python plugin (and I do not understand it),
Definitely not true for python:
#!/usr/bin/env python
import os,sys
from gimpfu import *
def caller(image):
gimp.message('Caller script on image "%s"' % image.name)
pdb.python_fu_called(image,"signature to prove call")
register(
'caller',"Test python script call","Test python script call","me","me","9999","Test python script call","*",
[
(PF_IMAGE, "image", "Input image", None),
],
[],
caller,
menu="<Image>/Test",
)
main()
and
#!/usr/bin/env python
import os,sys
from gimpfu import *
def called(image,signature):
gimp.message('Called script on image "%s" with call signature: "%s"' % (image.name,signature))
register(
'called',"Test python script call (called, don't use)","Test python script call (called, don't use)","me","me","9999","Test python script call (called, don't use)","*",
[
(PF_IMAGE, "image", "Input image", None),
(PF_STRING, "signature", "Signature", None)
],
[],
called,
menu="<Image>/Test",
)
main()
Attachment:
py2pycall.zip [834 Bytes]
Downloaded 139 times
Script-fu can be different (yes, AFAIK there is one single executor process), even though in that case why are the script-fu's added in the procedure browser if they cannot be used? But also AFAIK they are all in the same workspace (you can have function name clashes between script-fu's) so you can likely call their main function directly.