User interaction exercises#
Question
Create a new script/macro with the following skeleton of a macro:
Then, follow these steps:
- Go to the parameters documentation.
- Choose a
Type
and aStyle
if applicable. - In the macro, add the
Type
to the parameter declaration. - If you have a
Style
, addstyle="..."
with the appropriate value in the parenthesis. - Give a
name
to your parameter and change thelabel
. - Use the value of the parameter to make a string.
- Run your macro!
Question
Find examples, of the Type
you chose, in the documentation and explore the different parameters.
For instance, an Integer
type has different styles and parameters (e.g. min, max etc.).
Question
Find an example of a dialog to choose a file and use it in a macro.
How freakin' amazing is that?