Templates allow the developer to create a reusable function, that does the same task over and over again, but with different objects at different times. Templates save you time, as you can use a template containing a long line of connected nodes, instead of adding each individual node over and aver again. To create a template. Select the string of nodes that you want to make into a Template. Then right click and choose Extract Template. You must make sure to select the lines going to and from the template, as this tells the template where the input and output is.
The input perimeters box will pop up. You will have slots to fill in text Main top one reads Template Name. The other is Scene Model. You can have multiple scene model slots - that will be demonstrated further down the page.
It is good practice to name your template either related to the task you are trying to achieve (Remove Bolt) or the nodes that make up the template. In this situation I used the nodes (HiLit/Clik/UnHiLit/Animt).
A Template has been created.
You can copy templates by selecting the template in your Storyboarder, then using Alt-drag & release. You also can drag from your Templates Tab. To access your templates tab. There is a white arrow in the top right corner of your properties box.
Left click Add Tab, Choose Templates.
In your Template Tab you will find all the templates you have created in this lesson. To use one simply left click and drag into your Storyboarder.
I added the next two bolts by dragging from my Editor Tab and dropping them into my Storyboarder.
I added all remaining bolts and matched them up with templates. So now I have six Template nodes. I want to clean it up even more, so I'll create another template. Select all six templates with out the objects, right click and choose Extract Template.
The input perimeters box will pop up. You will have slots to fill in text. The top one reads Template Name. Now you have six scene model slots, the arrows on the left of the scene model slot determine the order of the scene models.
Now that you have a template in a template, you can drag the scene objects into the scene objects slot in the template.
The two last images are of the same string of functions. Difference is, the one on top used templates. Now you can see how Templates save you time as you can use a template containing a string of nodes, instead of adding each individual node. Templates also greatly simplify the look of your scenario.