The main question for this experiment: Can I create a plug-in that sprays random graphics in a efficient, useful and beautiful manner using this framework?
When the points of your finger positions are recorded using either the Leap Motion controller (or cursor positions using a mouse), not only can we draw lines using that data, but we can also use those as the positions for existing graphics. In this example, I have select 12 different items on the Illustrator Artboard and after I click on the stampIt button, it randomly selects from the group of 12 and places it at the next recorded position. Before it repeats this process, the plug-in randomly selects colors from the Swatches panel and applies it to the fill for each internal path item. The end result is a unique ‘brushstroke’ that contains a generative assortment of design elements.
In addition to position, there’s a ton of additional data coming from the Leap Motion controller (multiple hands, fingers, z-position, gestures, etc.) as well as the speed and direction the finger(s) are moving in that can be used to affect additional properties (scale, rotation, opacity, etc.) of each graphic. All of these parameters can be exposed in the UI if it’s desired.