+<em>Macro module</em> and press <em>Run</em>.</p><p>Now, you have to edit:</p><ol><li>Name: The name of your module</li><li>Package: Select the package you like to save the macro module in.</li><li>Directory Structure: Change to <em>Self-contained</em> (this setting is only available in MeVisLab versions before 5.0.0, later versions always use <em>self-contained</em>)</li><li>Project: Select you project name</li></ol><p>Press <em>Next</em> and edit the following:</p><ol><li>Copy existing network: Select the example network</li><li>Check the box: Add Python file</li></ol><p>Now, create your macro module and reload MeVisLab. You can find your module via search in MeVisLab.</p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/CreatingMacroModule.png title="Creating macro module"><img id="Creating macro module" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/CreatingMacroModule.png alt="Creating macro module" title="Creating macro module"></a><figcaption class=figure-caption>Creating macro module</figcaption></p></p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/EnablePythonScripting.png title="Enable Python scripting"><img id="Enable Python scripting" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/EnablePythonScripting.png alt="Enable Python scripting" title="Enable Python scripting"></a><figcaption class=figure-caption>Enable Python scripting</figcaption></p></p><p>To design a panel and create a user interface for the macro module, open the <em>*.script</em> file. You can see, that a Command environment exist, which defines the python file as source for all commands.</p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/OpenScriptFile.png title="Open the script file"><img id="Open the script file" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/OpenScriptFile.png alt="Open the script file" title="Open the script file"></a><figcaption class=figure-caption>Open the script file</figcaption></p></p><p><p class=page-image><a data-modal=bs-lightbox href=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/ScriptFile.png title="Script file"><img id="Script file" class="img-fluid rounded" src=https://mevislab.github.io/examples/pull/127/images/tutorials/basicmechanics/ScriptFile.png alt="Script file" title="Script file"></a><figcaption class=figure-caption>Script file</figcaption></p></p><h3 id=creating-a-panel-with-tabs-and-viewers>Creating a panel with tabs and viewers</h3><p>At first, we create a
0 commit comments