This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| this work as well. | |
| I suppose cloud path has something type or pattern of string. | |
| and the application detects cloud or local automatically. | |
| */ | |
| app.open(new File( "/cloud-content/tsukuda.psdc" )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var idsave = charIDToTypeID( "save" ); | |
| var desc266 = new ActionDescriptor(); | |
| var idAs = charIDToTypeID( "As " ); | |
| var desc267 = new ActionDescriptor(); | |
| var idcloudPSDFormat = stringIDToTypeID( "cloudPSDFormat" ); | |
| desc266.putObject( idAs, idcloudPSDFormat, desc267 ); | |
| var idassetRef = stringIDToTypeID( "assetRef" ); | |
| //here is local id and filepath on cloud doc. replace the local id with yours | |
| desc266.putString( idassetRef, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| use as a psjs not as a js. | |
| this script defines UI Dialog. | |
| */ | |
| const { createLayer } = require("./photoshopAPI.psjs"); | |
| //dialog size | |
| const DIALOG_WIDTH = '550px'; | |
| const DIALOG_HEIGHT = '650px'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| this script creates solid color fill layer from gradient. | |
| use this script as a psjs. | |
| before executing script, select a gradient layer. | |
| it creates solid color fill layer following point of color on gradeint layer. | |
| requirement | |
| later than Photoshop ver 23.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| this is a UXP script for Photoshop | |
| that labels layers on document.(except group layer) | |
| you could set clause that layer's style. | |
| (like locked or visible) | |
| requirement | |
| later than Photoshop ver 23.5 | |
| you could use this one for free. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * this is UXP Photoshop Script | |
| * please save as a psjs file this one | |
| * and load on Photoshop. | |
| * | |
| * requirement | |
| * Photoshop later than 23.5 | |
| */ | |
| const { app } = require("photoshop"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <nav class="nav"> | |
| <form name="nav" class="nav__form"><!-- 基本inputタグはformタブで囲む --> | |
| <ul class="nav__link"> | |
| <li> | |
| <label for="setGuideForm" class="nav__label"><!--label 要素でinput周りのタブを囲む--> | |
| <input type="radio" class="nav__radio" name="tab" value="setGuide" id="setGuideForm" checked="true"/> | |
| <!-- radio box本体 ただし最終的にinputタグは非表示にしてdivやspan要素で装飾する --> | |
| <span class="nav__title">set guide</span> | |
| </label> | |
| </li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "../styles/style.scss";//sassを読み込み | |
| import "@babel/polyfill";//polyfillを読み込み | |
| window.onload = () =>{ | |
| "use strict"; | |
| const csInterface = new CSInterface(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm i -D webpack-node-externals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| const mode = "development"; | |
| const enabledSourceMap = mode === "development"; | |
| const path = require("path"); | |
| module.exports = { | |
| mode:mode, | |
| devtool:"source-map", | |
| target:"node", | |
| context:path.resolve(__dirname,"src"), |
NewerOlder