Plugin Preview
About this plugin
クリップボードにコピーしてあるJavaScriptをFigma上で実行できるプラグインです。
ユーティリティー系のアプリと組み合わせることで、Figmaのさまざまな操作をショートカットキーでカスタマイズすることを目的に作成しました。
想定しているユーティリティー系アプリはKeyboard Maestroです。
- Keyboard Maestroで、クリップボードにFigmaを操作するJavaScriptをセットする
- Keyboard MaestroでFigmaのメニューバーの[プラグイン]→[DoJavaScript]を選択する
- 実行が終わったらKeyboard Maestroでセットしたクリップボードは破棄する
Keyboard Maestroでこれら一連の操作をまとめたマクロにショートカットキーを設定すれば、好きなショートカットキーで任意のJavaScriptをFigma上で実行できるようになります。
■使用イメージ
下記投稿のようなFigma APIの実行を好きなショートカットキーで実行できるようになります。
https://twitter.com/31mskz10/status/1684541017561903104
これは下記のFigma APIを使ったJavaScriptをKeyboard Maestroでコピーし、プラグインを実行して実現しています。
const selection = figma.currentPage.selection.slice()
for (let node of selection) {
node.resize(200, 300)
}
Plugin Details
Version | 1 |
---|---|
Created | August 3, 2023 |
Last Updated | August 3, 2023 |
Category | design-tools-other |
Creator | 31mskz10 |
Stats | 12 installs, 0 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:code.js
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the design-tools-other category.