New Tech Note on Quartz Composer
Quartz Composerに関する新しいTech NoteがAppleのサイトにアップされている。
Technical Note TN2146: Making the most of Cocoa bindings in Quartz Composer
Technical Note TN2143: Getting images in and out from Quartz Composer compositions
Technical Note TN2145: Efficiently using Quartz Composer compositions with QuickTime
特に最近、ずっと悩んでいたCocoa BindingとQCの連携についてのtech noteがありがたい。
QCPatchControllerを使うとCocoa Binding Compatibleになる。rootパッチ自体は “patch”というcontroller keyでbindingからアクセス可能。入出力の値は、patch.(QCのインプット/アウトプット名).value。
パッチを動的にプログラム内で入れ替えても、QCのインプット/アウトプット名が同じであれば、bindingはそのまま動くらしい。
NSString* path = [[NSBundle mainBundle] pathForResource:@”MyComposition.qtz” ofType:@”qtz”];
if([myQCView loadCompositionFromFile:path]) ….
いうcontroller keyでbindingからアクセス可能。入出力の値は、patch.(QCのインプット/アウトプット名).value。
パッチを動的にプログラム内で入れ替えても、QCのインプット/アウトプット名が同じであれば、bindingはそのまま動くらしい。その他、bindingをプログラム上で作る方法(straightforward!)と、QCのパッチの入出力が変化を感知する方法についての記述がある。
Project Phonethica
Combining scientific technology and art, Phonethica is an interdisciplinary project which explores the diversity of the world, through the phonetics of its 6,000 languages.
Search
Archives
- November 2007
- September 2007
- August 2007
- April 2007
- March 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
No Responses to “New Tech Note on Quartz Composer”
Please Wait
Leave a Reply