The GIMP-based environment is implemented using embedded PLT Scheme in a GTK+2 GUI, all glued together with C. (In an earlier post, I mention the problem of passing pointers between Scheme and C. This is where it's happening.)
Those experiences suggest a variety of reasons that a designer (that is, someone using one of these graphical design applications) might want to interactively script:
- Scripting provides additional precision when such precision is appropriate. For example, one might want to write a script to draw a line from exactly here to exactly there.
- Scripting makes it easier to repeat similar actions. After doing a sequence of operations, one might want to repeat the operations at a different location, in a different scale, or perhaps even at a different orientation.
- Scripting makes it easier to explore design alternatives. Given an initial drawing, one can easily write a script to generate a variety of similar alternatives, either by varying the original drawing systematically (e.g., placing each component nearby) or randomly.
- Scripting unlocks new capabilities. We’ve seen designers familiar with the GIMP get very excited after seeing how easy it is to make a brush that changes while they draw.
- Scripting can open new perspectives. In the GIMP+MediaScript application, it is possible to represent an image as a function from position to color, which allows one to quickly produce interesting and novel color blends.
No comments:
Post a Comment