The CreaTools include a simple scripting language called bbs (black box scripting) allowing you to create very easily and quickly applications which include existing high-level components. These components which we named ‘black boxes’ follow the object-oriented programming philosophy. The black boxes have already been developed and you simply need to chain them into a workflow with your desired inputs and outputs. Let us take an example! If you need a 2D image viewer, all you have to do is to create and connect a FileSelector, an ImageReader and a Viwer2D with the help of bbs commands like this:
Black boxes are grouped into packages, which are dynamic libraries. In order to be able to use a black-box you have to previously include the package to which it belongs. Therefore, for the example above you first need to load the needed packages like this:
include vtk …
For a detailed description of the available commands, components and packages please refer to the doc here (link).
The bbs commands are executed using the bbi interpreter provided by the creatisStudio described in the next section. They can be typed either directly in a creatisStudio console or saved in a bbs script. Once you created your own script you can run it at any time or can integrate it as a component in a new script.