Difference between revisions of "AnyWave:Plugin Batch"

From WikiMEG
Jump to: navigation, search
(Created page with "=MATLAB/Python= =C++=")
Line 1: Line 1:
=MATLAB/Python=
+
=Introduction=
=C++=
+
One of the features of AnyWave is to run some processing from the command line.<br/>
 +
This is called batch processing, allowing to process many files in different locations using a script file run by the OS.<br/>
 +
=Make my plugin runnable in command line=
 +
If you want AnyWave to handle your plugin using the command line, you must do as follow:<br/>
 +
==MATLAB/Python==
 +
edit the desc.txt:<br/>
 +
<syntaxhighlight lang="text">
 +
name = MyPlugin
 +
description = do something in MATLAB
 +
category = Process:Test:MyPlugin
 +
flags = CanRunFromCommandLine
 +
</syntaxhighlight>
 +
Note: we've added a line with the flags keyword. This keyword will inform AnyWave of the capabilities of your plugin.<br/>
 +
You may combine flags using the : (the colon character). Example:<br/>
 +
flags = CanRunFromCommandLine:NoDataRequired<br/>
 +
This indicates that the plugin can be called from the command line but also indicates that no data file is required. (The plugin will not run on a data file.)<br/>
 +
==C++==

Revision as of 15:36, 21 April 2020

Introduction

One of the features of AnyWave is to run some processing from the command line.
This is called batch processing, allowing to process many files in different locations using a script file run by the OS.

Make my plugin runnable in command line

If you want AnyWave to handle your plugin using the command line, you must do as follow:

MATLAB/Python

edit the desc.txt:

name = MyPlugin
description = do something in MATLAB
category = Process:Test:MyPlugin
flags = CanRunFromCommandLine

Note: we've added a line with the flags keyword. This keyword will inform AnyWave of the capabilities of your plugin.
You may combine flags using the : (the colon character). Example:
flags = CanRunFromCommandLine:NoDataRequired
This indicates that the plugin can be called from the command line but also indicates that no data file is required. (The plugin will not run on a data file.)

C++