Category:VSL
From Virtools Wiki
Introduction to VSL
VSL stands for "Virtools Scripting Language", it is a scripting language that complements the Virtools Schematic editor. With VSL you can access most of the Virtools SDK on script level. When you find that your schematic script is becomming a forrest of BBs and ParamOps then you may want to consider turning that schematic into a VSL script. There are two types of VSL scripts:
- Global VSL scripts These scripts are used to define functions that will be accessible to all other scripts. Global VSL scripts cannot be run themselves.
- Run VSL scripts These are the scripts that you can run using the Run VSL BB.
VSL scripts make use of two important global variables:
- bc (Behavior Context) is only used in Run VSL scripts. Its type is BehaviorContext and it provies methods to create objects, write text to the console, write text in the 3D view, manage attributes, manage messages, deal with the variable manager and profile your scripts. Click here for the list of methods.
- ac (Action Context) is only used in Action scripts. It's type is ActionContext and it provides methods to access mouse coordinates and selections, manage attributes and write text to the console or in the 3D view. Click here for the list of methods.
Articles in category "VSL"
There are 9 articles in this category.
CF |
GSV |
V cont. |
