Top Banner
Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović [email protected]
14
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Sketchify TutorialVariables

sketchify.sf.netŽeljko Obrenović

[email protected]

Page 2: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Agenda

• Variables• Using variables

Page 3: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Variables

• Many elements of Sketchify communicate indirectly by exchanging messages through a centralized repository of variables.

• Variables provide a simple and uniform abstraction mechanism, enabling a designer to work with very diverse elements using the same set of operations.

• Properties of freehand sketches, such as their position or transparency, or user actions such as item selections, can be mapped to blackboard variables.

Page 4: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Variables

• Spreadsheets or scripts can subsequently read, process, and update these variables.

• I/O services can receive arguments and send back results through such variables.

• Lastly, through extension mechanisms other platforms can update, read or register for the notification of variables.

Page 5: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Interface for Working with Variables

• Variables can be accessed through a spreadsheet-like interface, making all data immediately visible and manipulatable.

• A designer can directly observe and update variables; useful to explore and play with the functionality.

Filter Sort

Add new variable

Delete selectedvariables

Derivedvariables Remote

updates

Count filter

Disable variables’ updates

Page 6: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Using Variables

• Capturing user motion• Setting region and sketch properties• Updating variables based on events• Actions triggered by variable updates

Page 7: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Capturing User Motion in Variables

• Step 1: Creating variable “rot”

Page 8: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Capturing User Motion in Variables

• Step 2: drag-and-drop the variable on the active region motion mapping icon

Page 9: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Capturing User Motion in Variables

• Step 3: select properties of motion that you want to capture in the variable

• In this exampleit is “rotation”

Page 10: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Capturing User Motion in Variables

• Step 4: interact with the region and observe variables changes• In this example, dragging the region with right mouse button

will rotate it and update the variable “rot”

Page 11: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Setting Region and Sketch Properties

• You can drag-and-drop the variable on the region properties icon, and select property

Page 12: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Setting Region and Sketch Properties

• In this example we are using variable “rot” to control rotation property of another region

Page 13: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.
Page 14: Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl.

Updating Variables on Events

• Events– Mouse Events– Keyboard Events– Sketch events: entry, exit

• Variable Actions– Update variable– Increment variable– Append variable