Tileable Filters

I have created a wrapper script to allow a number of existing filters to have tileable results (assuming the input layer is tilable).
This script creates the following new menu entries (modeled after the Tileable Blur provided in Gimp already):
Filters >Distorts >Tileable Emboss
Filters >Blur >Tileable Motion Blur
Filters >Distorts >Tileable Wind
Filters >Light and Shadow >Tileable Sparkle
Filters >Noise >Tileable Slur
Filters >Noise >Tileable Spread
Filters >Artistic >Tileable Cubism
Filters >Artistic >Tileable Oilify
Filters >Artistic >Tileable Photocopy
Filters >Artistic >Tileable Softglow

More can be added, I just went through the menus looking for ones that could benefit from this.

Here is an example of the stock wind filter and with the tileable wrapper.

-Rob A>

AttachmentSize
TileableFilters.scm8.96 KB

Comments

Hi RobA I tried this filter

Hi RobA

I tried this filter and got the following error before showing the interface (if it does):
"Error while executing
(script-fu-tileable-oilify 4 32)
ERROR: unbound variable (errobj <>)"

and

"Plug-In 'Tileable Oilify' left image undo in inconsistent state, closing open undo groups."

WinXP, Gimp 2.6.5

Any ideas?

RiaanR

Missing the init files

It looks like you are missing one or both of the following files:

\Program Files\Gimp-2.0\share\gimp\2.0\scripts\script-fu.init
\Program Files\Gimp-2.0\share\gimp\2.0\scripts\script-fu-compat.init

Both of these should have been installed with gimp. They provide the definitions for "<>", "random" (that you reported as an error with the tiles2 script in another post) and a whole other bunch of helper functions.

How did you install this version of gimp?

-Rob A>

Missing the init files

It looks like you are missing one or both of the following files:

\Program Files\Gimp-2.0\share\gimp\2.0\scripts\script-fu.init
\Program Files\Gimp-2.0\share\gimp\2.0\scripts\script-fu-compat.init

Both of these should have been installed with gimp. They provide the definitions for "<>", "random" (that you reported as an error with the tiles2 script in another post) and a whole other bunch of helper functions.

How did you install this version of gimp?

-Rob A>

Missing init

I just downloaded the windows installer from
http://gimp-win.sourceforge.net/stable.html

This makes me wonder what else is missing?
I'll do a complete uninstall and re-install.
If the problem persists I'll try and get a download for those files.

Thanx

RiaanR

innit files installed

I got the init files, but I'm still getting the same error.

I did a complete fresh install.
Ideas?

I've seen such problems

I've seen such problems when people do have a lot of scripts installed, mostly due to redefinitions of procedures. Currently, all loaded script do share one global name space.

There are plans to load run scripts on demand only, like plug-ins. This will make this problem less likely to occur, but still possible).

Until this is done, it is suggested that procedures aren't put into the script-fu name space (i.e.do not call them "script-fu-foo-bar" but "author-foo-bar") and to use local defines (i.e. utility procedures inside your main ones) as much as possible.

I got the problem sorted,

I got the problem sorted, there was a script-fu.exe file in my plugins folder (v2, it may have been a old over from previous installs) - I deleted it and now the script works fine.

RobA - Thank you for a very useful script.

RiaanR