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 | |
* @author sacrifs | |
*/ | |
var _doc = activeDocument, | |
_layers = [], | |
main = function(){ | |
preferences.rulerUnits = Units.PIXELS; | |
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
/** | |
* Expand Timeline | |
*/ | |
var _doc = fl.getDocumentDOM(); | |
var _tl = _doc.getTimeline(); | |
var _rate = parseFloat(prompt("Input rate.", "2")) | |
if(!isNaN(_rate) && _rate != 1 && _rate > 0){ | |
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; | |
function loaded(){ | |
var b = d.createElement('div'); | |
var q = d.createElement('div'); | |
$(b).css({position:'fixed',width:'100%',height:'100%',background:'#FFFFFF',zIndex:0x7FFFFFFF,top:0,left:0}).on('click', hide); | |
$(q).qrcode(location.href).css({zIndex:0x7FFFFFFF,position:'fixed',left:'50%',top:'50%',marginLeft:'-128px',marginTop:'-128px'}).on('click', hide); | |
d.body.appendChild(b); | |
d.body.appendChild(q); | |
function hide(){$(b).hide();$(q).hide();} |
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); |
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
/** | |
* 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
/** | |
* 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
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
/** | |
* レイヤーセット(フォルダ)を消すJSX | |
*/ | |
var _layers = []; | |
var _layerSets = []; | |
main(); | |
function main(){ |
NewerOlder