Viz Artist

Version 3.9.1 | Published December 13, 2017 ©

Create Script-based plug-ins

Scene plug-ins and Container plug-ins can be created, saved and used again in other Scenes or Containers. To do this create a plug-in of the created script.

Created Script-based plug-ins are saved as ‘.vsl’ files at <viz data folder>\Scriptplug-ins, and are available in these folders:

  • Container plug-ins -> Script plug-ins

  • Scene plug-ins -> Script plug-ins

    images/download/attachments/27789987/viz_icons_default.png

    Script-based plug-ins can be used the same as Scene or Container plug-ins, and allow the additional following operations:

  • Can be deleted: Drag the script to the trash can.

  • The source code of a script-based plug-in can be copied into a script editor. Drag the plug-in from Script plug-ins folder to the Script Editor.

This section contains the following procedures:

To Create a Script-based plug-in

images/download/attachments/27789987/gettingstarted-scripting_create_script_plugin.png

  1. Create a script (see To Create a Container Script plug-in).

  2. Click images/download/attachments/27789987/gettingstarted-scripting_compile_icon.png .

    Note: If the script is bad a Script plug-in can not be created. Correct any bad script first.

  3. Go to Built Ins -> Container plug-ins -> Scriptplug-ins.

  4. Drag and drop the Script icon to the Scriptplug-ins folder.

    images/download/attachments/27789987/gettingstarted-scripting_save_script_plugin_anno.png
  5. Enter a name for the Script plug-in.

  6. Click OK.

To Edit a Script-based plug-in

  1. Add a Container to the Scene Tree.

  2. Add a Script plug-in.

  3. Open the Script Editor(Scene Settings -> Script).

  4. Drag and drop the required script plug-in from the Scriptplug-ins folder to the Script Editor.

  5. Click Replace.

    images/download/attachments/27789987/gettingstarted-scripting_save_replace.png
  6. Edit the script as required.

  7. Click the Compile & Run to save.

See Also