Session 16: Using Links L1 and L2

Preparation

  • There are no external assets required for this training session.

Description

Links are a powerful feature in Swift that enable the linking of parameters of one node to any set of parameters on another node. A typical link would be one that sets the size of a rectangle – that is placed beneath some text – to always be the same width as the text that is entered above it.

Session specific objectives

Creating a plinth that scales according to the length of a text string; Links editor.

Chapter 1: Creating a plinth and link. L1

  • Editing the pivot point
  • Linking the plinth to text width
  • Source and Destination Fields
  • Using Scale with text size
  • Group Function: Average
  • Adding margins
  • Using Bias

Chapter 2: Using the Group Function for multiple links

  • Adding Max-X size to Xsize links
  • Group Function: Min

Chapter 2: Add two dynamic text strings and centre them on screen. L2

  • Setting the correct text ranges – left and right
  • Group function: Expressions
  • $1, $2 syntax

Expected duration

1 hour

User Level

All new users

Session Project

If you want to review Justin Avery's instructor project at this point in the course, you can download the project zip here.