Re: [Gimp-developer] preview for scrip-fu plugin?
Kevin Cozens wrote: pepster wrote: Say I have a scrip-fu plugin (I am thinking about wrap sharp), and I want to add a preview window to make it more useful. Does it mean I must re-write the plugin in C, or is there an easier way? You would have to re-write it in C. There is no easy way to add a preview window to Script-Fu. I tried to make a start but facing immediate problems. Would appreciate some pointers - 1. The scm code calls the (pdb) plugin plug_in_edge. I am not sure how my C plugin can make a call to another plugin?? 2. The preview need to render just a sub-region of the preview drawable - but a plug-in such as plug_in_edge need a drawable as argument. How does one turn a region into a new drawable? Thanks, Joseph ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] preview for scrip-fu plugin?
On 6/29/05, pepster [EMAIL PROTECTED] wrote: Kevin Cozens wrote: pepster wrote: Say I have a scrip-fu plugin (I am thinking about wrap sharp), and I want to add a preview window to make it more useful. Does it mean I must re-write the plugin in C, or is there an easier way? You would have to re-write it in C. There is no easy way to add a preview window to Script-Fu. I tried to make a start but facing immediate problems. Would appreciate some pointers - 1. The scm code calls the (pdb) plugin plug_in_edge. I am not sure how my C plugin can make a call to another plugin?? The way to do this is with one of the gimp_run_procedure functions, but in this case edge-detection is trivial enough that it doesn't make sense to call a separate plug-in to do it. In fact, copying the existing edge-detection plug-in might be the best way to start. Rockwalrus ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] preview for scrip-fu plugin?
Nathan Summers wrote: On 6/29/05, pepster [EMAIL PROTECTED] wrote: Kevin Cozens wrote: pepster wrote: Say I have a scrip-fu plugin (I am thinking about wrap sharp), and I want to add a preview window to make it more useful. Does it mean I must re-write the plugin in C, or is there an easier way? You would have to re-write it in C. There is no easy way to add a preview window to Script-Fu. I tried to make a start but facing immediate problems. Would appreciate some pointers - 1. The scm code calls the (pdb) plugin plug_in_edge. I am not sure how my C plugin can make a call to another plugin?? The way to do this is with one of the gimp_run_procedure functions, but in this case edge-detection is trivial enough that it doesn't make sense to call a separate plug-in to do it. In fact, copying the existing edge-detection plug-in might be the best way to start. Rockwalrus And then re-implement gausian filtering, and then re-implement map bumping and ... - do you get the picture? Anyway, gimp_run_procedure2 it is. Now, how do I create a drawable from the region on the fly? Thanks, Joseph ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] preview for scrip-fu plugin?
pepster wrote: Say I have a scrip-fu plugin (I am thinking about wrap sharp), and I want to add a preview window to make it more useful. Does it mean I must re-write the plugin in C, or is there an easier way? You would have to re-write it in C. There is no easy way to add a preview window to Script-Fu. -- Cheers! Kevin. (http://www.interlog.com/~kcozens/) Owner of Elecraft K2 #2172|What are we going to do today, Borg? E-mail:kcozens at interlog dot com|Same thing we always do, Pinkutus: Packet:[EMAIL PROTECTED]| Try to assimilate the world! #include disclaimer/favourite | -Pinkutus the Borg ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer