#include "../yScripts/y_JSExtensions.jsx"; yOffsetCornerPin_data = new Object(); yOffsetCornerPin_data.scriptName = 'YCornerPinOffset'; yOffsetCornerPin_data.scriptDesc = 'Offsets each corner of a CornerPin Effect'; yOffsetCornerPin_data.scriptVer = '0.1a'; yOffsetCornerPin_data.webLink = 'yorchnet.com'; //if yToolBox Exists add it to its tool list. if (typeof(YTB)!=='undefined'){ YTB.tools.push(yOffsetCornerPin_data); //it should be called from toolbox. /* yOffsetCornerPin_data.buttonWidth=76; yOffsetCornerPin_data.buttonHeight=30; */ yOffsetCornerPin_data.btnLayout = "btn_"+ yOffsetCornerPin_data.scriptName+": Button { preferredSize: ['"+ YTB.buttonWidth+"','"+ YTB.buttonHeight+"'], text:'"+yOffsetCornerPin_data.scriptName+"', helpTip:'"+yOffsetCornerPin_data.scriptDesc+"' }"; } yOffsetCornerPin_data.res = "window { \ type:'palette' , text:'"+yOffsetCornerPin_data.scriptName+' '+yOffsetCornerPin_data.scriptVer+"',\ \ \ info: Group { \ alignment:['center','bottom'], \ icon: Image {preferredSize: [15, 18]},\ website: StaticText { text:'"+yOffsetCornerPin_data.webLink+"', alignment:['fill','center'] },\ }\ \ }"; //------------------------------------------------------------------------------------------------------------------------ function getSelectedCornerPins() { /* Function that returns a list of effect objects that match any of the names specified in validCornerPinNames. */ validCornerPinNames = ["ADBE Corner Pin","CC Power Pin"] selectedLayers = app.project.activeItem.selectedLayers cornerPins = [] for (layer=0;layer