Sketch 外掛程式 複製畫板

2021-09-23 17:33:24 字數 1861 閱讀 7608

// mscanvasactions

var action = doc.actionscontroller().actionwithname("mscanvasactions");

// 預設複製artboards中最後乙個畫板

action.duplicate(nil);

artboards = page.artboards();

複製前,page裡的artboard陣列
"6 (40479cfb-8a05-4c93-9704-384f0345d865)",

"6+ (f383bfc0-06ba-43f9-9858-2b16acc4290b)"

複製後,

當選中"6"畫板,複製,"6 copy"畫板的在artboards陣列中緊緊隨"6"後:

"6 (40479cfb-8a05-4c93-9704-384f0345d865)",

"6 copy (f2bb6c08-12fe-4c10-8f67-1a3e540b69c1)",

"6+ (f383bfc0-06ba-43f9-9858-2b16acc4290b)"

複製畫板

doc = context.document;

log("controller :" + doc.actionscontroller);

var actioncontroller = doc.actionscontroller();

log("actions :" + actioncontroller.allactions());

action = actioncontroller.actionwithid("mscanvasactions");

action.duplicate(nil);

16/6/5 下午9:34:02.469 scale (sketch plugin)[32254]: actions :(

"",

"","",

"",

"",

"","",

"",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"","",

"",""

)

sketch 3.8.3最新的標頭檔案

自己寫的乙個外掛程式:

推薦6款UI設計師必備Sketch外掛程式

用過zeplin的同學基本淚流滿面,而這個免費外掛程式可以讓你泣不成聲。直接在本地生成html,非常便捷檢視尺寸顏色等引數,和zeplin一樣的思路。不僅免費,而且公司也不用擔心雲端的安全 隱私問題了。如果說sketch mearsure可以節省你一杯咖啡的時間,這玩意可以節省你一頓飯的時間。真正的...

外掛程式 解決網頁無法複製問題

外掛程式名 allow copy 適用平台 chrome firefox edge safari 360極速版 qq瀏覽器等谷歌核心的瀏覽器 這兩天剛好發現一款挺好用的外掛程式,可以解決這個問題,讓那些限制複製的 解除限制 我們以xx文庫為例,我想蒐個題庫,然後想複製下來 還要開會員,算了算了 那我...

Unity場景物體路徑複製外掛程式

下邊有一部分設計unity編輯器擴充套件,這裡找了乙個寫的比較全面的文章 直接選中場景中的某個物體,然後使用copypath功能。這裡有三種方式,一 選單欄 gameobject copy path 二 右鍵 copy path 三 預設快捷鍵 ctrl 1 可以自己在 裡修改 複製完後,可以直接去...