Number Variables

In this tutorial, we will learn how to specify and utilise the Number variable type.

These can be used where a numerical selector is required, such as when linking to a font size.

adobe

  1. 1. To begin, select the Variables tab within the Invent plugin in Adobe InDesign

    To begin, select the Variables tab within the Invent plugin in Adobe InDesign
  2. 2. Click Add Variable

    Click Add Variable
  3. 3. Select a Number Variable

    Select a Number Variable
  4. 4. Enter a variable name

    Enter a variable name
  5. 5. Specify a default number value

    This is the value selected by the variable upon first loading the MegaEdit editor.

    Specify a default number value
  6. 6. Optionally, complete additional UI information to be displayed to the end user

    Optionally, complete additional UI information to be displayed to the end user
  7. 7. Optionally, complete some additional validation settings

    Minimum and maximum numerical values can be specified, along with messages displayed to the user if these numbers are exceeded.

    Optionally, complete some additional validation settings
  8. 8. Specify a step increment

    Specify a step increment
  9. 9. Click Save

    Click Save
  10. 10. Your variable has now been created

    Your variable has now been created
  11. 11. Next, we will link one of our text frames to this newly created variable

  12. 12. Select a text frame

    Select a text frame
  13. 13. Click the Properties tab

    Click the Properties tab
  14. 14. Enable the text frame to make it variable

    Enable the text frame to make it variable
  15. 15. Locate the Font Size selection and change the type to Variable

    This controls the font size of the text contained within the selected image frame.

    By linking this to a number variable, we can directly control the font size via a form input.

    Locate the Font Size selection and change the type to Variable
  16. 16. Select our Number Variable

    Select our Number Variable
  17. 17. Navigate to the Export tab and create a MEX file of this template

    Navigate to the Export tab and create a MEX file of this template
  18. 18. Upload the MEX template to your MegaEdit product and launch the editor

    Upload the MEX template to your MegaEdit product and launch the editor
  19. 19. The Number Variable will be available within the MegaEdit form

    The Number Variable will be available within the MegaEdit form
  20. 20. Altering the variable value will change the font size in the linked text box

    Altering the variable value will change the font size in the linked text box