algorithmic modeling for Rhino
Grasshopper by default allows you to save individual components and clusters as "user objects," which can be re-used over and over again. However, sometimes you want to save a group of components without clustering them - like a component with pre-defined value lists or sliders attached, or special configurations with plugins like kangaroo, honeybee, or anemone.
The attached script lets you do just that - create a user object that can automatically place multiple components at a time. Place the "Create Snippet" component in a group with a set of other components, and set the input toggle to "true." It will create a new, disabled "Place Snippet" component over the top of it. This component automatically transforms into your snippet as soon as it is enabled - so there's a bit of a trick in order to save it as a user object. First, disable the solver. Then enable the Place Snippet component, highlight it, and save it as a user object. Then, any time you place the user object, it will automatically reinstantiate the group of components you saved.