Scripter Javascript Tutorial
javascriptmusiclogicscripterbookexcerpttutorial73 Deleting Controls
Since PluginParameters
is an array, then all
array
functions also apply. While removing the lines of
code which create a control can remove the control, the
pop()
and splice()
functions are used to
remove controls in code in reaction to events elsewhere in the script
while the track is playing. When a parameter control has been deleted
after being created the script, Scripter will display the following
message in the console upon the first click of "Run
Script":
Number of plugin parameters reduced. Existing automation data may have been deleted.