Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20190518-3dcg-meetup-slide.pdf

 20190518-3dcg-meetup-slide.pdf

2019/05/18に開催された 3DCG Meetup #15 で登壇したときの資料
https://3dmu.connpass.com/event/128459/

サンプルコード
https://github.com/macneko-ayu/20190518-3dcg-meetup-sample

macneko-ayu

May 18, 2019
Tweet

More Decks by macneko-ayu

Other Decks in Programming

Transcript

  1. ExtendScriptͷ࠷৽։ൃ؀ڥ • 2018೥11݄ɺESTKͰεΫϦϓτͷ࣮ߦ͕Ͱ͖ͳ͍
 ෆ۩߹͕ൃੜͨ͠ • ࢀߟɿExtendScript Toolkit Debugger Error #1116

    • 2018೥12݄ɺࠓޙ͸৽όʔδϣϯͰ͸ͳ͘ɺ
 Visual Studio CodeʢҎ߱VS CodeʣͷϓϥάΠϯͱͯ͠
 ϦϦʔε͞ΕΔ͜ͱ͕ൃද͞Εͨ • ࢀߟɿThe Future of ExtendScript Development: A VSCode Plugin ৽ͨͳσόοάπʔϧ΁ͷҠߦ
  2. CEPͷ֓ཁ • Adobe Common Extensibility PlatformʢCEPʣͷ ͜ͱ • HTML5ɺCSS3ɺJavaScriptͱ͍͏Webͷ։ൃٕज़ Λ࢖ͬͯɺAdobe

    CCΞϓϦέʔγϣϯͷΤΫες ϯγϣϯΛ࡞੒Ͱ͖Δ • CC 2014Ҏ߱͸Node.js͕૊Έࠐ·Ε͍ͯΔͷͰɺ NPM͔ΒύοέʔδΛΠϯετʔϧͯ͠
 ར༻Ͱ͖Δ CEPͱ͸
  3. CEPͷ֓ཁ • CEP 4͸CC 2013?͔ΒରԠ͍ͯ͠Δ • 2019/05/18ݱࡏͷ࠷৽όʔδϣϯ͸CEP 9 ͰɺCC 2019ʹ֘౰͢Δ

    • ಉ͡೥ʹϦϦʔε͞ΕͨΞϓϦέʔγϣϯͰ ΋CEPͷόʔδϣϯ͕ҟͳΔ͜ͱ͕͋ΔͷͰ ஫ҙ͢Δ CEPͷରԠόʔδϣϯ 1
  4. CEPͷ֓ཁ • ΞϓϦέʔγϣϯ͝ͱͷCEPͷόʔδϣϯ • https://github.com/Adobe-CEP/CEP-Resources/blob/master/ CEP_9.x/Documentation/ CEP%209.0%20HTML%20Extension%20Cookbook.md#applicati ons-integrated-with-cep • Node.jsͷόʔδϣϯ

    • https://github.com/Adobe-CEP/CEP-Resources/blob/master/ CEP_9.x/Documentation/ CEP%209.0%20HTML%20Extension%20Cookbook.md#chromiu m-embedded-framework-cef CEPͷରԠόʔδϣϯ 2
  5. CEPͷ֓ཁ • ެࣜϦϙδτϦ • https://github.com/Adobe-CEP • ެࣜυΩϡϝϯτ • https://github.com/Adobe-CEP/CEP-Resources/blob/ master/CEP_9.x/Documentation/

    CEP%209.0%20HTML%20Extension%20Cookbook.md • ΞϓϦέʔγϣϯࣗಈԽ૯߹ίϛϡχςΟϑΥʔϥϜ (Japan) ͷ จॻ • https://forums.adobe.com/docs/DOC-8785 υΩϡϝϯτͳͲ
  6. CEPͷ։ൃ؀ڥ 1. VS CodeͷίϚϯυύϨοτΛදࣔ͢Δ 2. ݕࡧϑΟʔϧυʹ ʮcep debugʯ ͱೖྗ͢Δ 3.

    બ୒ࢶͷத͔ΒʮExtension Creator: Enable CEP Debug ModeʯΛબ୒͢Δ 4. ॴఆͷσΟϨΫτϦʹCEPΛઃஔ͢Δ͜ͱͰ σόοά࣮ߦͰ͖Δ Player Debug ModeΛઃఆ͢Δ
  7. CEPΛ࡞ͬͯΈΔ 1. VS CodeͷίϚϯυύϨοτΛදࣔ͢Δ 2. ݕࡧϑΟʔϧυʹ ʮcreate ccʯ ͱೖྗ͢Δ 3.

    બ୒ࢶͷத͔ΒʮExtension Creator: Create a New CC ExtensionʯΛબ୒͢Δ ςϯϓϨʔτΛ࡞੒͢Δ 1
  8. CEPΛ࡞ͬͯΈΔ 4. Extension IDΛೖྗ͢ΔύϨοτ͕දࣔ͞ΕΔɻ σϑΥϧτͰ͸ com.example.helloworld ͱೖྗ ͞Ε͍ͯΔͷͰɺ೚ҙͷIDΛೖྗͯ͠EnterΛԡ͢ 5. Extensitonͷ໊લΛೖྗ͢ΔύϨοτ͕දࣔ͞Ε

    Δɻ೚ҙͷ໊લΛೖྗͯ͠EnterΛԡ͢ 6. ࡞੒͢ΔςϯϓϨʔτͷܗࣜΛબ୒͢Δɻbasicɺ topcoatɺspectrumɺthemeͷ4छྨ͔Βબ୒͢Δ ςϯϓϨʔτΛ࡞੒͢Δ 2
  9. CEPΛ࡞ͬͯΈΔ • HostListλάͰCEPΛར༻͢ΔΞϓϦέʔγϣϯΛઃఆ͢ ΔʢςϯϓϨʔτͰ͸PhotoshopͷΈ༗ޮʹͳ͍ͬͯΔʣ 1. <Host … />ͷίϝϯτΞ΢τΛ֎͢ 2. Version="[18.0,99.9]"

    ͷόʔδϣϯNo.ʢ਺ࣈͷ෦ ෼ʣΛมߋ͢Δ • [࠷খόʔδϣϯNo., ࠷େόʔδϣϯNo.]ͱ͍͏ҙຯ manifest.xmlͷઃఆΛมߋ 1
  10. CEPΛ࡞ͬͯΈΔ 1. Photoshop CC 2019Λىಈ͢Δ 2. ϝχϡʔ͔Βʮ΢Οϯυ΢ʼΤΫεςϯγϣϯ ʼHello World ʯΛબ୒͢Δ

    3. CEPͷύωϧ͕දࣔ͞ΕΔͷͰɺ
 Call ExtendScriptϘλϯΛΫϦοΫ 4. Ξϥʔτ͕දࣔ͞Εɺ ʮhello from ExtendScriptʯͱ͍͏ϝοηʔδ͕දࣔ͞ΕΔ CEPΛར༻͢Δ
  11. CEPΛ࡞ͬͯΈΔ • ࣍ͷ఺Λ֬ೝ͢Δ • Player Debug Mode ͕༗ޮʹͳ͍ͬͯΔ͔ • ར༻͍ͨ͠ΞϓϦέʔγϣϯ͕

    
 manifest.xml ͰίϝϯτΞ΢τ͞Ε͍ͯͳ͍ ͔ɺ΋͘͠͸هࡌ͕࡟আ͞Ε͍ͯͳ͍͔ • ར༻͍ͨ͠ΞϓϦέʔγϣϯͷόʔδϣϯ ͕ manifest.xml ʹؚ·Ε͍ͯΔ͔ CEP͕ಡΈࠐ·Εͳ͍৔߹