424 CHAPTER 11 (Web site construction) PLUG-INS AND SCRIPTING Figure

424 CHAPTER 11 PLUG-INS AND SCRIPTING Figure 11-4. The sphere generated by the built-in Sphere script You might want to take one of these spheres and paste them into a drawing wouldn t it make a nice Christmas tree ornament or poodle nose? But you can t! The sphere generated by the script always has a solid background. If you want to paste the sphere into another image, you either have to use your selection skills to get rid of the background, or make your own sphere by hand (as you learned to do in Chapter 9). That s a lot of work. But the GIMP is an open source program, and that means you aren t limited to the choices the developers made: you can make it do anything you want. Why not just make it do the right thing? Find the Original Script The first step is to locate the existing script. You can find where GIMP scripts are stored by looking in the Preferences window (File . Preferences from the Toolbox): expand the Folders category and click on Scripts. The GIMP should show you at least two folders. One is the place where you can put personal copies of scripts; the other is in a system directory where GIMP has its own files installed. Make a note of these two locations. You ll use them both. Now find the script itself (in the system script directory). Usually it will have a .scm (short for scheme ) extension. You generally have to guess what the file name might be, but in this case it s not too hard: there s a file there called sphere.scm. Edit a Copy of the Script It s not a good idea to edit GIMP s existing scripts in place what if something goes wrong? so be safe and copy sphere.scm to your personal scripts folder.
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.

Leave a Reply