Example of post processing plugin with template update

From Dynamo
Revision as of 11:33, 5 October 2016 by Daniel Castaño (talk | contribs) (Created page with "Here we show a piece of code that illustrates how to create a simple post processing plugin. In this case, we show an example that operates a minimum of functionality of a plu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here we show a piece of code that illustrates how to create a simple post processing plugin. In this case, we show an example that operates a minimum of functionality of a plugin: operating on the average produced by one iteration, allowing Dynamo to use a transform of the average as template for the next iteration. This particular example implements a transform consisting in applying a C2 transfom along all x,y,z axis of the template.

The plugin is callable through Matlab execution of the project.


Plugin code

Activating the plugin inside a project

After writing the script, you need to make your project aware of the fact that during runtime a project will be invoked.

dvput ptest plugin_post_r1 1
dvput ptest plugin_post_order_r1 'example();'

Running a project that calls a plugin