Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New tip #76

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions mevislab.github.io/content/tutorials/shorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ menu:
This chapter shows some features and functionalities which are helpful but do not provide its own tutorial.

* [Using Snippets](/tutorials/shorts#snippets)
* [Scripting Assistant](/tutorials/shorts#scriptingassistant)

## Using Snippets {#snippets}

Expand All @@ -34,3 +35,15 @@ Enter a name for your snippet like *DICOM Viewer* and click *Add*.
A new snippet will be shown in your Snippets List. You can drag and drop the snippet to your workspace and the modules are re-used, including all defined field values.

![Snippets List](/images/tutorials/Snippets_Panel.png "Snippets List")

## Scripting Assistant {#scriptingassistant}

{{< youtube "y6110PW5N_w" >}}

If you are new to Python or don't have experiences in accessing fields in MeVisLab via Python scripting, the Scripting Assistant might help you.

Open {{< menuitem "View" "Views" "Scripting Assistant">}}. A new panel is shown.

If you now interact with a network, module or macro module, your user interactions are converted into Python calls. You can see the calls in the panel of the Scripting Assistant and copy and paste them for your Python script.

![Scripting Assistant](/images/tutorials/ScriptingAssistant_Panel.png "Scripting Assistant")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.