Postprocessing plugins

From Dynamo
Revision as of 11:55, 3 March 2017 by Daniel Castaño (talk | contribs) (Created page with "Postprocessing plugins are a tool for customization of the alignment procedure in ''Dynamo''. With this kind of plugin, the user can define an action that ''Dynamo'' will exec...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Postprocessing plugins are a tool for customization of the alignment procedure in Dynamo. With this kind of plugin, the user can define an action that Dynamo will execute after each iteration during a project alignment.


Naming of a plugin script

Dynamo requires that the plugin script itself is named with the pattern

dynamo_postprocessign_plugin_SOMESTRING.m

where SOMESTRING is the shortname of the plugin.

The script should be in the execution path of Matlab (i.e., you should use addpath on the directory where you have defined your plugin). We recommend not to save your plugin files inside the folders of a Dynamo installation, but in your own folders.

Linking plugin and project

You need two orders. With the first one you tell Dynamo that round 1 (for instance) will look for a plugin after normal Dynamo execution. For a project called ptest, you would write:

dvput ptest plugin_post_r1 1

Then, you pass the plugin itself:

dvput ptest plugin_post_order_r1 dynamo_plugin_thisIsAnExample

if necessary with parameters.

dvput ptest plugin_post_order_r1 dynamo_plugin_thisIsAnExample parameterForPlugin1 parameterForPlugin2

Do not forget to unfold again the project before running it.

Syntax of a plugin script

Input arguments

Location of iteration and round

The project database

Example script