How do I create a circular or elliptical selections in Javascript for use in Photoshop? -


so end goal create 4 circular selections @ corners, after looking through documentation , having searched many times, couldn't find information on other rectangular selection areas. believe there should solution, can't think of doesn't involve setting huge array of boundary pixel locations circle (which i'm not sure work, i'm new photoshop scripting , how works).

many thanks!

the photoshop scripting api in not complete , stuck trying accomplish tasks. great tool handling adobe's own scriptlistener plugin. take little bit of time figure out code spits out fill holes scripting. below function use making circular selections:

function makecircle(left,top,right,bottom,antialias){    var circleselection = charidtotypeid( "setd" );      var descriptor = new actiondescriptor();      var id71 = charidtotypeid( "null" );          var ref5 = new actionreference();          var id72 = charidtotypeid( "chnl" );          var id73 = charidtotypeid( "fsel" );          ref5.putproperty( id72, id73 );      descriptor.putreference( id71, ref5 );      var id74 = charidtotypeid( "t   " );          var desc12 = new actiondescriptor();            var top1 = charidtotypeid( "top " );          var top2 = charidtotypeid( "#pxl" );          desc12.putunitdouble( top1, top2, top );            var left1 = charidtotypeid( "left" );          var left2 = charidtotypeid( "#pxl" );          desc12.putunitdouble( left1, left2, left );            var bottom1 = charidtotypeid( "btom" );          var bottom2 = charidtotypeid( "#pxl" );          desc12.putunitdouble( bottom1, bottom2, bottom );            var right1 = charidtotypeid( "rght" );          var right2 = charidtotypeid( "#pxl" );          desc12.putunitdouble( right1, right2, right );        var id83 = charidtotypeid( "elps" );      descriptor.putobject( id74, id83, desc12 );      var id84 = charidtotypeid( "anta" );      descriptor.putboolean( id84, antialias );  executeaction( circleselection, descriptor, dialogmodes.no );  }


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -