Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this short walk-through "Hello world" applicationexample, we'll show step by step how you can create your SMART template, using dynamic layout functions.

Define your document

For this example , we created a document , and set the units to pixels, since the output intent will be a web banner.

This document is set to 728 x 90 px. You can set the default units in the Environment > View Preferences

Image Modified

...

Step 2

Make document variable

Image Removed

See the result when chaging variables

Image Removed``

Let's add a frame

...

Make the documentsize variable

Instead of having a fixed dimension for the document (Add), we will make 2 variables and assign the width and height of the document to these variables.

When changing the values of these variables, the document will resize.

This is a first step in making the document dynamic.

  1. Add 2 variables (see documentation on Variables)
    1. "addwidth"
    2. "addheight"
  2. Type them as "number"
  3. In the documents tab, click on the Formula button Image Added and add the name of the created variable.
  4. Set the value of the variable in the Variables tab

Image Added

Image Added

Now, when you update the values, the document will change.

Congratulations, your first step towards a true SMART template!

Image Added``

Add content

Add an image frame. Initially, a manually added frame or imported from your favourite Desktop Publishing Tool, will have absolute coordinates, width & height.

Image Removed

Let's make these coordinates variableThese values will relate to the top-left corner of your document.

The width and height of the frame are referenced off the top-left corder of the frame itself, unless you change the reference point.

Image Added

Make the frame dynamic

The X-position (left side of the frame): -6 px. Why -6? The document has a "bleed" of 6px. This would be usefull if you will also use this document for print output. If you don't intend to output to print, you can set the bleed to 0, and the x-position will be 0px.0 px (see frame Location)

The Y-position (distance from the top of the document reference): -6px, similar reason as X-position0px.

Width: We can now use formulas (by clicking on the formula button) and write page.width+12px (we need to add 12 px, to compensate for the 2 x 6p bleed)

Height: Page.heigt+12 px, same as the document + the compensation for the bleed

From now on, the image frame will keep the same size as the document.

Image Removed

...

Image Added

Add an image

When adding an image to that frame, you must choose a "fitting". Will the image fit proportional (inside) or proportional outside?
We choose to fit proportional outside. Meaning, we'll loose some image, but the frame is always filled, without loosing the proportions.

Image Modified

Image Modified

Because the frame is tied to the size of the document, the image inside the frame will also resize with the document resizing. And, the proportional fit will remain.

Image Modified

Adding more elements

From here on, it's up to you to add even more elements. You choose where these elements align on, and how they should behave.

CopyFitting

When combining features like a dynamic frame size, and e.g. Copyfitting, you can have the text grow in proportion to the Add size.

Image Modified

Image Modified

Output

You're Add is now ready to be exported.

Just set the output size you want, choose the output settings, and your add is ready to be created.

 

Image Modified

...

Image Added