2013年9月11日 星期三

New toy for Processing (Tweak_mode)





I saw a new toy for Processing and was excited to share with you.
The new Toy is call Tweak mode created by Gal Sasson 
This is not really embedded in Processing.
But you can easy follow the step to step up this Mode
What's the special of this mode?
--------------------------------------------------------------
今天看到一個Processing的新玩具在這邊跟大家分享
這個新玩具叫做 Tweak mode, 由Gal Sasson 所設計
他並沒有在Processing的原始設定中
但你只要跟著我的操作
就可以擁有
這個模式有何特別呢?


This is part of a simple code.
But you can see that there are underlines
under all the numbers in draw(), 
and also this slider-like bar.
Yes, it is!
It is indeed a real-time slider 
controlling your parameters 
in your code. 
------------------------------------------------------------------------
上圖是一個簡單程式的小部分
但你可以看到程式中draw()
裡面有的數字都加了底線
而且也出現了箭頭型的Slider?!
是的!
他是一個即時的Slider
控制你程式中的參數

Now Lets see how you can do it.
First, You need to Download at least
---------------------------------------------------------------------------
現在我們來瞧瞧要怎麼設定
首先你必須要有至少
的板本

Then open your processing
and go to the Mode on the right-top side:
-----------------------------------------------------------------------------
 然後打開你的Processing
到右上方


press "Add Mode"
it will pop-up a windows
----------------------------------------------------------------------
點選 "Add Mode"
他就會跳出視窗

Select the Tweak Mode on the bottom
and Install
---------------------------------------------------------------------
選擇最下方的 Tweak Mode
然後裝載

RESTART your Processing
then you will see a "Tweak" exsit
----------------------------------------------------------------------------
重新啟動你的Processing
 你就會看到 "Tweak"出現了


But this is not the end,
Before you can run the Tweak mode,
You have to have oscP5 library
which this mode is based on.
------------------------------------------------------------------------------
但這還沒結束
在你開始使用 Tweak mode
你必須要有oscP5 library 
(因為此Mode使以此為基礎所做)

Download the oscP5
unzip and put it under the path below:
C:\Users\XXXX\Documents\Processing\libraries
---------------------------------------------------------------------------------
在下載完oscP5
解壓縮放置於下路徑:
C:\Users\XXXX\Documents\Processing\libraries

The last thing you have to do is:
In your code, remember to import the oscP5 library
Simple follow the step:
Click on "Import Library"--> Add Library
and select "oscP5"
------------------------------------------------------------------------------------
最後要做的事情
就是在你的程式中要輸入 oscP5 library
簡單的幾個步驟:
點選"Import Library"--> Add Library
然後選擇"oscP5"即可


Now you can enjoy the Tweak mode.
現在你可以享用 Tweak mode.

More tips:
1. change precision:
simply add differently: 
// change with precision of 1
// change with precision of 0.1
// change with precision of 1
after your line of the variable.
2.Specific Tweak:
Simply add:
//tweak
after the line that you "Only" want to control
----------------------------------------------------------------------
小技巧:
1. 改變精準度:
將以下不同精準度 
在你要操控的參數之後
// change with precision of 1
// change with precision of 0.1
// change with precision of 1

2.特定調整:
簡單在你"儘"要調整的參數程式後加上:
//tweak





沒有留言:

張貼留言