On 09/19/12 04:19, paynekj wrote:
> According to the procedure browser,
> the third parameter to pass to the plug-in-unsharp-mask should be the 
> drawable id,
> but you are passing the image id.
> It's only working in your first stage because, by luck,
> the image id and the drawable id have the same value.
> 
> You need to get a drawable id - usually by calling gimp-image-get-active-layer

Thanks; (also for the pointer on variable number of args)

When I do gimp-image-get-active-layer, I get something, not a number, back;
and that something is not directly usable in a call to plug-in-unsharp-mask.
After much hair tearing, I discovered you have to take the car of it.

What's the best way to determine / print out what a thing is?
  This is where the old form, "print" seems to be more useful than "display"
  as it seems to print out whatever the arg is; it doesn't have to be 
  converted to string, which is tough if you don't know what it is to begin 
with.
  Is there a "more correct" way?

Thanks,

Gary
_______________________________________________
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list

Reply via email to