Dosen原創(chuàng)
這是我學(xué)習(xí)quartz composer,Origami盗痒,看官方文檔翻譯下來(lái)的蚂蕴,每天一篇,有不準(zhǔn)確的地方希望能指出俯邓,一起交流進(jìn)步骡楼。轉(zhuǎn)載請(qǐng)與我聯(lián)系,擅自轉(zhuǎn)載視作侵權(quán)稽鞭。
Sketch Import ? ? ?導(dǎo)入Sketch文件
New in Origami 2.1, you can now import a file from Sketch to start prototyping in seconds. Just hitFile > Import Sketch File...and it will import the currently open Sketch document and place all the Layers in the correct, center-anchored position in the appropriate Layer Groups (supports multiple Artboards as well).
在新的Origami2.1中鸟整,你可以從Sketch中導(dǎo)入一個(gè)文件,來(lái)快速開始原型工作朦蕴。點(diǎn)擊File > Import Sketch File篮条,它會(huì)從當(dāng)前打開的Sketch文件中導(dǎo)入并且正確的放置所有圖層,中心錨點(diǎn)放置在層組合適的位置(支持多個(gè)Artboard)吩抓。
Updating an imported document ? ? ?更新一個(gè)導(dǎo)入的文件
The import will place each image as a Live Image, which means that any updates to an asset will be reflected immediately. This is handy if you are tweaking copy, images, or appearances.
導(dǎo)入功能會(huì)把每一個(gè)放置進(jìn)來(lái)的圖片作為L(zhǎng)ive Image(功能就是放置一張電腦上的圖片的模塊)涉茧,這意味著資源的任何更新都會(huì)實(shí)時(shí)的反射進(jìn)來(lái),方便你做調(diào)整疹娶。
To update the assets, simply install and run theExport for Origamiplugin from Sketch???O. It will not update positions or layer hierarchies.
更新資源伴栓,只需要安裝并運(yùn)行Sketch的插件Export for Origami( ???O ),它不會(huì)更新位置或?qū)拥姆旨?jí)蚓胸。
Watch theSketch + Origami tutorialfor a detailed walkthrough:
觀看Sketch + Origami tutorial詳細(xì)的演示:
Limitations ? ? ?局限性
Sketch import is meant for the initial transition into Origami. It will not update positions/layer hierarchies. Each time you run Import Sketch File it will create a new file. Use the plugin mentioned above to update layer images.
Sketch導(dǎo)入意味著在導(dǎo)進(jìn)Origami時(shí)就初始化了位置挣饥,它不會(huì)更新位置和層級(jí)。每次你運(yùn)行Import Sketch File就會(huì)創(chuàng)建一個(gè)新文件沛膳。使用上面提到的插件更新圖層圖片扔枫。