0

I want to create a script that call a set of other scripts and run them with specific parameters. Specifically for now, I want to run the solid-noise cloud rendered. I created a script and I call the solid-noise script using

gimp.pdb.plug_in_solid_noise (RUN_INTERACTIVE,image, drawble, FALSE,FALSE,1,8,10,10)

Which does absolutely nothing. There isn't even an error message.

So how can I make this work?

Yotam
  • 10,295
  • 30
  • 88
  • 128
  • I'm not a Python expert, but in other scripts I've seen calling pdb.plug_in_solid_noise without prepend "gimp.". Have you got errors in python console? – Paolo Gibellini Sep 26 '13 at 15:11

3 Answers3

1

I don't know if this is the general case, but in my case, I need to call the solid-noise plug in (in python, solid_noise) without the run-mode.

Yotam
  • 10,295
  • 30
  • 88
  • 128
1

if you're using python-fu you don't have to care about run-mode: link Simply avoid to write it. Here I found the most complete documentation about python-fu, maybe it would be useful to you too.

Alberto
  • 718
  • 4
  • 20
0

Assuming that you are using script-fu and than img and drawble are defined (and using 0 for Run Mode Interactive), this should work:

(plug-in-solid-noise 0 image drawble FALSE FALSE 1 8 10 10)

Perhaps the documentation lacks, but you can open the script-fu console (Filters -> Script-Fu -> Console) and searching for the available functions using the Browse... button. Here you can find the parameters to be used, for example:

enter image description here

Paolo Gibellini
  • 310
  • 13
  • 21
  • The question was very generic and tagged with script-fu tag, and my answer seems pertinent to me, I'd be grateful for any feedback or criticism that I can learn from or use to help me improve my answer. – Paolo Gibellini Nov 03 '13 at 22:50