Quartz Composer のチートシートを作ってみた。
コンポジションのお供に。
次の画像の実際のサイズは2480x3507です。注意!
追記:
PDFから画像として保存したときに一部表示が消えています(Shortcus for ... の下線)。PDFのサイズが7.4MBとかだったので画像でうp。
見る場合は保存してから見ることをおすすめしますm(_ _)m
A4でプリントアウトするとちょうどよいと思います。
英語版。
日本語版。
以下、英語版作成時のファイル等。
rubyスクリプトはこんな感じ
以前とほとんど一緒。今回は画像も表示してみました。
require 'rubygems' require 'prawn' require './lib/inifile' def table_title(headers) {:font_size => 9, :horizontal_padding => 10, :vertical_padding => 3, :border_width => 0, :position => :center, :align => {1 => :left}, :headers => headers, :align_headers => :center, :row_colors => :pdf_writer } end inifile = "QC-eng.ini" section = [] File.open(inifile, "r") do |f| f.each_line{ |line| section << $1 if /^\[(.+?)\]$/ =~ line } end Prawn::Document.generate("Quartz Composer Shortcut.pdf") do font "./default.ttf" icon = "./icon.png" image icon, :scale => 0.4, :at => [80, 740] text "Quartz Composer Shortcut Cheat Sheet", :size => 14, :align => :center move_down 18 oIni = IniFile::new inifile h = 650 section.each do |sec| bounding_box [100,h], :width => 340 do text "☞" + sec, :align => :center stroke { line bounds.bottom_left, bounds.bottom_right } end command = [] oIni[sec].each{ |k, v| command << [k, v] } table command, table_title(["Action","Shortcut"]) move_down 40 h -= 24 + 22 * command.size end end
QC-eng.ini
iniファイル内容。ADCの『Quartz Composer User Guide』を参考に作成。
[Shortcuts for common actions in the editor window]
Add a note=Control-Click the workspace
Fast zoom in or out=Press Option as you use the scroll wheel
View all temporarily=View all temporarily while press and hold the '=' key
Show the Patch Creator=⌘-Return
Compare compositions=Option-⌘-O
Create macro=Shift-⌘-M
Show hierarchy browser=⌘-B
Show input parameters=⌘-T
Create sticky inspector=⌘-Double Click
Show inspector=⌘-I
Edit information=Option-⌘-I
Edit protocol conformance=Option-⌘-P
Customize the toolbar=⌘-Click the toolbar and choose Customize Toolbar
Show viewer=Shift-⌘-V
Show editor=Shift-⌘-E[Shortcuts for common actions in the viewer window]
Run the viewer=⌘-R
Stop rendering=⌘-.
Save snapshot=Shift-⌘-C
Enable full-screen mode=⌘-F
Performance rendering mode=Shift-⌘-R
Debug rendering mode=Shift-⌘-D
Profile rendering mode=Shift-⌘-L
Customize the toolbar=Control-Click the toolbar and choose Customize Toolbar