yOffsetCornerPin_data = new Object(); yOffsetCornerPin_data.scriptName = 'YCPOffset'; yOffsetCornerPin_data.scriptDesc = 'YToolBox Script for Offseting Corner Pin Effects'; yOffsetCornerPin_data.scriptVer = '0.1a'; yOffsetCornerPin_data.webLink = 'yorchnet.com'; yOffsetCornerPin_data.img = yToolBox_data.icon; //if yToolBox Exists add it to its tool list. if (typeof(yToolBox_data)!=='undefined'){ //it should be called from toolbox. yOffsetCornerPin_data.buttonWidth=76; yOffsetCornerPin_data.buttonHeight=30; yOffsetCornerPin_data.btnLayout = "btn_"+yOffsetCornerPin_data.scriptName+": Button { preferredSize: ['"+ yOffsetCornerPin_data.buttonWidth+"','"+ yOffsetCornerPin_data.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 {icon:'"+String(yOffsetCornerPin_data.img.path+"/"+yOffsetCornerPin_data.img.name)+"',preferredSize: [15, 18]},\ website: StaticText { text:'"+yOffsetCornerPin_data.webLink+"', alignment:['fill','center'] }\ }\ \ }"; //--------//--------//--------//--------//--------//--------//--------//--------//--------//--------//--------//--------//--------//--------//--------//--------//-------- // MAIN SCRIPT GOES HERE. 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