Sketchify Tutorial Properties and Variables. sketchify.sf.net Željko Obrenović

Similar documents
TECH TIP VISION Calibration and Data Acquisition Software

Lab 1 - Worksheet Spring 2013

MobileCoach ISRII Handout

Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017

Consider this m file that creates a file that you can load data into called rain.txt

USER-DEFINED ELEMENT IN ZMAN TM

Introduction to MATLAB

Goals for This Lecture:

MATELECT PDsoft v1.00

Functions and Inverses ID1050 Quantitative & Qualitative Reasoning

C++ Overview. Chapter 1. Chapter 2

CSI31 Lecture 5. Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT

AMS 27L LAB #1 Winter 2009

9 Using Equation Networks

Lesson #3. Variables, Operators, and Expressions. 3. Variables, Operators and Expressions - Copyright Denis Hamelin - Ryerson University

LinReg 2.06 Manual. DePauw University: Physics Department 120 Physics I and 130 Physics II

MATLAB QUICK START TUTORIAL

Introduction to Engineering gii

Introduction to Python, Cplex and Gurobi

User manual. Version 9.2.0

C++ Programming Lecture 11 Functions Part I

Data Types and Basic Calculation

Introduction to MATLAB 7 for Engineers

ME 142 Engineering Computation I. Unit 1.2 Excel Functions

Product Price Formula extension for Magento2. User Guide

Hive Wavetables. Introduction 2. Concepts 3 Some Terminology 3. Commands 4

Summary of basic C++-commands

Ordinary Differential Equation Solver Language (ODESL) Reference Manual

Matlab Programming Introduction 1 2

Custom Variables (Virtual Variables)

APPENDIX P. Derived Parameter Specification

Telemetry Standards, IRIG Standard (Part 1), Appendix P, June 2011 APPENDIX P DERIVED PARAMETER SPECIFICATION. Paragraph Title Page

StudyMate 2. Create Activities or Games

Reference manual. PreFEED Corporation

StudyMate Author 2.0 User Guide (June, 2008)

Methods CSC 121 Fall 2014 Howard Rosenthal

Excel Tool: Calculations with Data Sets

Operators Functions Order of Operations Mixed Mode Arithmetic VOID Data. Syntax and type conventions Using the Script window interface

What is Matlab? The command line Variables Operators Functions

This document applies to version 2.40 of VPCalc, Copyright (c) by author: Harry J. Smith, Saratoga, CA.

CT 229 Java Syntax Continued

. Executable Statements

Engineering. Engr.10 JKA & KY. College of. San Jose State University

Chapter 1 Introduction to MATLAB

Chapter 2. Outline. Simple C++ Programs

Chapter 4: Basic C Operators

Visualisation Lab: gnuplot

Program Workspace. Why numerical methods? Problem examples Why programming? Why numerical methods and programming? Why VBA?

Product Data 3. COMPASS Performance Monitoring Software Part of the Type 3540 COMPASS Version 6.x or higher

CS1010E Lecture 3 Simple C Programs Part 2

Chapter 3 Functions and Files

EP375 Computational Physics

Maths Functions User Manual

Basic MATLAB Tutorial

Programming in QBasic

MATLAB Basics EE107: COMMUNICATION SYSTEMS HUSSAIN ELKOTBY

ParaMagic TM v16.6 sp1

Programming in MATLAB

Modular Test Sequencer MTS

Introduction to MATLAB 7 for Engineers

Engineering Problem Solving with C++, Etter/Ingber

Introduction to C++ Dr Alex Martin Room 6.10

6-1 (Function). (Function) !*+!"#!, Function Description Example. natural logarithm of x (base e) rounds x to smallest integer not less than x

StudyMate Author 2.5 User Guide (May, 2015)

Introduction to Computer Programming in Python Dr. William C. Bulko. Data Types

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment

Introduction to MATLAB for Engineers, Third Edition

Python Lists: Example 1: >>> items=["apple", "orange",100,25.5] >>> items[0] 'apple' >>> 3*items[:2]

2 Making Decisions. Store the value 3 in memory location y

Expressions and operators

Arithmetic. 2.2.l Basic Arithmetic Operations. 2.2 Arithmetic 37

Introduction to MATLAB. Dr./ Ahmed Nagib Elmekawy Mechanical Engineering department, Alexandria university, Egypt Spring 2017.

Introduction to Programming

The Number object. to set specific number types (like integer, short, In JavaScript all numbers are 64bit floating point

Introduction to Matlab

Welcome. Please Sign-In

OROS NVGATE 7 RELEASE NOTE

Welcome to EGR 106 Foundations of Engineering II

A. Introduction to Function 1. Modular Programming input processing output functions library functions 2. Function 1. Benefit of Using Functions

Introduction to PartSim and Matlab

Methods CSC 121 Fall 2016 Howard Rosenthal

MYSQL NUMERIC FUNCTIONS

Program Structure and Format

Starting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to.

Introduction to MATLAB

APpro: Profiles for Apache

LAB 1 General MATLAB Information 1

Check In before class starts:

Arithmetic and Logic Blocks

Python Programming: An Introduction to Computer Science

This is a basic tutorial for the MATLAB program which is a high-performance language for technical computing for platforms:

Introduction to MATLAB. Computational Probability and Statistics CIS 2033 Section 003

To start using Matlab, you only need be concerned with the command window for now.

User Guide. Table of Contents. 1 About New Features... 7

An Introduction to Unix

MATLAB Commands and Functions

Intrinsic Functions Outline

TEKS Clarification Document. Mathematics Precalculus

MATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed

Transcription:

Sketchify Tutorial Properties and Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl

Properties and Variables Properties of active regions and sketches can be given directly, or indirectly through variables Directly specify the value 90 Indirectly specify the value through variables Using formulas =variable =a + (b c) / 50 Using string templates You said <%=text%>

Why Variables? Benefits of indirect specification One variable can control several properties Through variables, objects in sketches can communicate with each other and with external services (such as Wii, text to speech service) YouTube Video

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 selected variables Derived variables Count filter Remote updates Disable variables updates

Connecting Variables and Drag and Drop Properties You can drag a variable and drop it on the region or sketch to set its properties Specifying property value in region setting With expressions and formulas With string templates

Drag and Drop Connection between Variables and Properties You can drag and drop the variable on the region properties icon, and select property YouTube Video

Specifying in the Properties Tab You can also specify properties by going to the properties tab of the region Instead of giving the value directly, you can use the expression =variable This means that value will be taken from the variable

Variables and Templates Templates are simple way to define a text with some part of it will be replaced with the variable value: Rotation is <%=rot%> degrees

Variables and Formulas You can also use more complex formulas to derive values using diverse operators and function Examples =sqrt(a^2 + b^2) =rot * 3 =100 + 50 * sin(rot) Expression with formulas have to start with = NOTE: If the variable name contains operator, such as " ", you have to put the name within apostrophes, for example "'movement intensity' / 2". YouTube Video

Formulas All common arithmetic operators are supported. Boolean operators are also fully supported. You can also derive the value conditionally using the if command. For example, the formula "if( a > 0.1 && a < 0.1, b, 1.0)" will return the value of variable b if the variable a is within 0.1 and 0.1, or 1.0 otherwise. Boolean expressions are evaluated to be either 1 or 0 (true or false respectively).

Operators Power ^ Boolean Not! Unary Plus, Unary Minus +x, x Modulus % Division / Multiplication * Addition, Subtraction +, Less or Equal, More or Equal =, >= Less Than, Greater Than, > Not Equal, Equal!=, == Boolean And && Boolean Or Functions Sine sin(x) Cosine cos(x) Tangent tan(x) Arc Sine asin(x) Arc Cosine acos(x) Arc Tangent atan(x) Arc Tangent (with 2 parameters) atan2(y, x) Hyperbolic Sine sinh(x) Hyperbolic Cosine cosh(x) Hyperbolic Tangent tanh(x) Inverse Hyperbolic Sine asinh(x) Inverse Hyperbolic Cosine acosh(x) Inverse Hyperbolic Tangent atanh(x) Natural Logarithm ln(x) Logarithm base 10 log(x) Exponential (e^x) exp(x) Absolute Value / Magnitude abs(x) Random number (between 0 and 1) rand() Modulus mod(x,y) = x % y Square Root sqrt(x) Min mix(x,y) Max max(x,y) Sum sum(x,y,z) If if(cond,trueval,falseval) Str (number to string) str(x) Binomial coefficients binom(n,i)