Kevin, Thank you giving me this information. It is really useful to know. I think it ought to be part of the Migration guide, because naive script writers like me don't know that functions like set-pt are locally defined. I thought I was using a built-in function.
It is further confused by the fact that the Windows version *does not* complain that set-pt is not defined. It is apparently defined elsewhere and is being found. To my mind, set-pt is either a global function or must declared locally and if GIMP is finding a local function, then this is a bug. It is being handled two different ways; perhaps it is a 2.4.0 versus 2.4.1 difference? Thanks for your help. I think I'll try a different way of setting the splines since this is static. Dave On Nov 7, 2007 7:29 PM, Kevin Cozens <[EMAIL PROTECTED]> wrote: > Dave 77459 wrote: > > Owen, > > > > Thanks for confirming that it works in 2.2 under Ubuntu and crashes on > 2.4. > > > > I too got that unbound error on 2.4 . I declared all the variables, > > which cleared that up under Windows. I still got the unbound error in > > Ubuntu, which is odd since set-pt is a function, not a variable?? > > > > So I added this in the hopes it would clear up: > > > > ; define the set-pt procedure (used to be embedded??) > > ; from http://adrian.gimp.org/scripts/shagadelic.scm > > (define (set-pt a index x y) > [snip] > > The script calls set-pt but did not define the function. In GIMP 2.2functions > in one file were defined in a way that made them available to be called by > scripts in other files. While this can be a useful feature at times it can > also cause problems. > > There were two scripts that defined point-list->double-array which took > one > argument. The routines were different and as a result, one of the two > scripts > appeared to be broken as it wound up calling the wrong version of the > function. > > As of GIMP 2.4, the scripts which ship as part of the Script-Fu plug-in > define > the functions they need locally (ie. other scripts can't access them). > This > avoids the problems of adding a new script and finding out that some other > previously working script no longer works. > > -- > Cheers! > > Kevin. > > http://www.ve3syb.ca/ |"What are we going to do today, Borg?" > Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus: > | Try to assimilate the world!" > #include <disclaimer/favourite> | -Pinkutus & the Borg > _______________________________________________ > Gimp-user mailing list > [email protected] > https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user >
_______________________________________________ Gimp-user mailing list [email protected] https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
