| sidebar_position | 6 |
|---|
Test package for validating that a single .package can register more than one script.
Click for details
The Multi Script Demo package in this repository is a working example demonstrating:
- Multiple
<ScriptClass>entries in oneclassfactory.xml - Separate
sourceFilevalues forScriptA.jsandScriptB.js(packages may also share onesourceFilewhen that file exports multiple factory functions) - A shared
skin.xmlwith one<Form>per script - A valid
metainfo.xmlusingPackage:SkinFile - A real UI flow where each script opens its own dialog before running
Source Code Files:
Key features:
- Shows how Studio Pro loads more than one script from a single package
- Uses distinct entry points for each script
- Opens separate dialogs for Script A and Script B
- Shows the shared dialog structure used by multi-script packages
Script AScript B
- Navigate to the Track menu in the menu bar. You should see
Script AandScript Bpopulating the Track menu. - Run either script, a dialog will appear.
- Use the checkbox to toggle whether it shows the alert window after pressing 'OK' in the dialog window.