This file contains 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
/** | |
* レイヤー名置換 JSX | |
* | |
* @version 1.0.0 | |
* @author sarifs | |
*/ | |
var _layerList = [], | |
main = function(){ | |
var dialog = createDialog(); | |
dialog.btnOk.onClick = function(){ |
This file contains 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
/** | |
* Get Selected Instance Name | |
* @author sacrifs | |
*/ | |
var _doc = fl.getDocumentDOM(); | |
function main(){ | |
fl.outputPanel.clear(); | |
var selectedItems = _doc.selection; |
This file contains 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
/** | |
* create movie clip from images. | |
*/ | |
var _doc = fl.getDocumentDOM(); | |
var _lib = _doc.library; | |
function main(){ | |
fl.outputPanel.clear(); | |
var selectedItems = _doc.selection; | |
var numItem = selectedItems.length; |
This file contains 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
/** | |
* rename instance name from the selected symbol name. | |
*/ | |
var _doc = fl.getDocumentDOM(); | |
function main(){ | |
fl.outputPanel.clear(); | |
var selectedItems = _doc.selection; | |
var numItem = selectedItems.length; | |
if(numItem == 0){ |
This file contains 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
/** | |
* レイヤーセット(フォルダ)を消すJSX | |
*/ | |
var _layers = []; | |
var _layerSets = []; | |
main(); | |
function main(){ |
This file contains 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
javascript: (function(){ | |
var d = window.document; | |
var s = d.createElement('script'); | |
s.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js'; | |
d.body.appendChild(s); | |
setTimeout(function(){ | |
$("img").each(function(){ | |
var src = $(this).attr("src"); | |
var img = new Image(); | |
img.src = src; |
This file contains 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
/** | |
* spiffieldCustomEvent | |
* | |
* @license MIT License http://www.opensource.org/licenses/mit-license.php | |
* @author sacrifs http://labs.spiffield.net/ | |
* @update 2013/01/11 | |
* | |
* var obj = document.createElement("object"); | |
* spfdCustomEvent.addListener(obj, "loadComp", function(e){alert("loadComplete!")}); | |
* spfdCustomEvent.dispatch(obj, "loadComp"); |
This file contains 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
/** | |
* Export2Text.jsx | |
*/ | |
var _layers = []; | |
main(); | |
function main(){ | |
CR = String.fromCharCode(13); |
This file contains 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
/** | |
* clipCurrentLayer | |
* レイヤー切り出し | |
* | |
* @version 0.1.1 | |
* @author sacrifs | |
*/ | |
preferences.rulerUnits = Units.PIXELS; | |
var ADOC = activeDocument; | |
var RESOLUTION = 72; |
This file contains 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($){ | |
$.fn.rayeffect = function(config){ | |
var defaults = { | |
duration:1000 | |
} | |
var options = $.extend(defaults, config); | |
return this.each(function(index){ | |
var TIME = options.duration; | |
var ct = $(this); |
OlderNewer