#target photoshop
// Kreisform erstellen
var idMk = charIDToTypeID( "Mk " );
var desc16 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref3 = new ActionReference();
var idcontentLayer = stringIDToTypeID( "contentLayer" );
ref3.putClass( idcontentLayer );
desc16.putReference( idnull, ref3 );
var idUsng = charIDToTypeID( "Usng" );
var desc17 = new ActionDescriptor();
var idType = charIDToTypeID( "Type" );
var desc18 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc19 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc19.putDouble( idRd, 255.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc19.putDouble( idGrn, 255.000000 );
var idBl = charIDToTypeID( "Bl " );
desc19.putDouble( idBl, 255.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc18.putObject( idClr, idRGBC, desc19 );
var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
desc17.putObject( idType, idsolidColorLayer, desc18 );
var idShp = charIDToTypeID( "Shp " );
var desc20 = new ActionDescriptor();
var idunitValueQuadVersion = stringIDToTypeID( "unitValueQuadVersion" );
desc20.putInteger( idunitValueQuadVersion, 1 );
var idTop = charIDToTypeID( "Top " );
var idPxl = charIDToTypeID( "#Pxl" );
desc20.putUnitDouble( idTop, idPxl, 105.000000 );
var idLeft = charIDToTypeID( "Left" );
var idPxl = charIDToTypeID( "#Pxl" );
desc20.putUnitDouble( idLeft, idPxl, 505.500000 );
var idBtom = charIDToTypeID( "Btom" );
var idPxl = charIDToTypeID( "#Pxl" );
desc20.putUnitDouble( idBtom, idPxl, 924.000000 );
var idRght = charIDToTypeID( "Rght" );
var idPxl = charIDToTypeID( "#Pxl" );
desc20.putUnitDouble( idRght, idPxl, 1324.500000 );
var idElps = charIDToTypeID( "Elps" );
desc17.putObject( idShp, idElps, desc20 );
var idstrokeStyle = stringIDToTypeID( "strokeStyle" );
var desc21 = new ActionDescriptor();
var idstrokeStyleVersion = stringIDToTypeID( "strokeStyleVersion" );
desc21.putInteger( idstrokeStyleVersion, 2 );
var idstrokeEnabled = stringIDToTypeID( "strokeEnabled" );
desc21.putBoolean( idstrokeEnabled, true );
var idfillEnabled = stringIDToTypeID( "fillEnabled" );
desc21.putBoolean( idfillEnabled, true );
var idstrokeStyleLineWidth = stringIDToTypeID( "strokeStyleLineWidth" );
var idPxl = charIDToTypeID( "#Pxl" );
desc21.putUnitDouble( idstrokeStyleLineWidth, idPxl, 0.000000 );
var idstrokeStyleLineDashOffset = stringIDToTypeID( "strokeStyleLineDashOffset" );
var idPnt = charIDToTypeID( "#Pnt" );
desc21.putUnitDouble( idstrokeStyleLineDashOffset, idPnt, 0.000000 );
var idstrokeStyleMiterLimit = stringIDToTypeID( "strokeStyleMiterLimit" );
desc21.putDouble( idstrokeStyleMiterLimit, 100.000000 );
var idstrokeStyleLineCapType = stringIDToTypeID( "strokeStyleLineCapType" );
var idstrokeStyleLineCapType = stringIDToTypeID( "strokeStyleLineCapType" );
var idstrokeStyleButtCap = stringIDToTypeID( "strokeStyleButtCap" );
desc21.putEnumerated( idstrokeStyleLineCapType, idstrokeStyleLineCapType, idstrokeStyleButtCap );
var idstrokeStyleLineJoinType = stringIDToTypeID( "strokeStyleLineJoinType" );
var idstrokeStyleLineJoinType = stringIDToTypeID( "strokeStyleLineJoinType" );
var idstrokeStyleMiterJoin = stringIDToTypeID( "strokeStyleMiterJoin" );
desc21.putEnumerated( idstrokeStyleLineJoinType, idstrokeStyleLineJoinType, idstrokeStyleMiterJoin );
var idstrokeStyleLineAlignment = stringIDToTypeID( "strokeStyleLineAlignment" );
var idstrokeStyleLineAlignment = stringIDToTypeID( "strokeStyleLineAlignment" );
var idstrokeStyleAlignInside = stringIDToTypeID( "strokeStyleAlignInside" );
desc21.putEnumerated( idstrokeStyleLineAlignment, idstrokeStyleLineAlignment, idstrokeStyleAlignInside );
var idstrokeStyleScaleLock = stringIDToTypeID( "strokeStyleScaleLock" );
desc21.putBoolean( idstrokeStyleScaleLock, false );
var idstrokeStyleStrokeAdjust = stringIDToTypeID( "strokeStyleStrokeAdjust" );
desc21.putBoolean( idstrokeStyleStrokeAdjust, false );
var idstrokeStyleLineDashSet = stringIDToTypeID( "strokeStyleLineDashSet" );
var list2 = new ActionList();
desc21.putList( idstrokeStyleLineDashSet, list2 );
var idstrokeStyleBlendMode = stringIDToTypeID( "strokeStyleBlendMode" );
var idBlnM = charIDToTypeID( "BlnM" );
var idNrml = charIDToTypeID( "Nrml" );
desc21.putEnumerated( idstrokeStyleBlendMode, idBlnM, idNrml );
var idstrokeStyleOpacity = stringIDToTypeID( "strokeStyleOpacity" );
var idPrc = charIDToTypeID( "#Prc" );
desc21.putUnitDouble( idstrokeStyleOpacity, idPrc, 100.000000 );
var idstrokeStyleContent = stringIDToTypeID( "strokeStyleContent" );
var desc22 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc23 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc23.putDouble( idRd, 255.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc23.putDouble( idGrn, 255.000000 );
var idBl = charIDToTypeID( "Bl " );
desc23.putDouble( idBl, 255.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc22.putObject( idClr, idRGBC, desc23 );
var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
desc21.putObject( idstrokeStyleContent, idsolidColorLayer, desc22 );
var idstrokeStyleResolution = stringIDToTypeID( "strokeStyleResolution" );
desc21.putDouble( idstrokeStyleResolution, 72.000000 );
var idstrokeStyle = stringIDToTypeID( "strokeStyle" );
desc17.putObject( idstrokeStyle, idstrokeStyle, desc21 );
var idcontentLayer = stringIDToTypeID( "contentLayer" );
desc16.putObject( idUsng, idcontentLayer, desc17 );
var idLyrI = charIDToTypeID( "LyrI" );
desc16.putInteger( idLyrI, 2 );
executeAction( idMk, desc16, DialogModes.NO );
// Verlauf (Winkel) anwenden und aufteilen
var idsetd = charIDToTypeID( "setd" );
var desc45 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref7 = new ActionReference();
var idcontentLayer = stringIDToTypeID( "contentLayer" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref7.putEnumerated( idcontentLayer, idOrdn, idTrgt );
desc45.putReference( idnull, ref7 );
var idT = charIDToTypeID( "T " );
var desc46 = new ActionDescriptor();
var idFlCn = charIDToTypeID( "FlCn" );
var desc47 = new ActionDescriptor();
var idDthr = charIDToTypeID( "Dthr" );
desc47.putBoolean( idDthr, true );
var idRvrs = charIDToTypeID( "Rvrs" );
desc47.putBoolean( idRvrs, false );
var idAngl = charIDToTypeID( "Angl" );
var idAng = charIDToTypeID( "#Ang" );
desc47.putUnitDouble( idAngl, idAng, 90.000000 );
var idType = charIDToTypeID( "Type" );
var idGrdT = charIDToTypeID( "GrdT" );
var idAngl = charIDToTypeID( "Angl" );
desc47.putEnumerated( idType, idGrdT, idAngl );
var idAlgn = charIDToTypeID( "Algn" );
desc47.putBoolean( idAlgn, true );
var idScl = charIDToTypeID( "Scl " );
var idPrc = charIDToTypeID( "#Prc" );
desc47.putUnitDouble( idScl, idPrc, 100.000000 );
var idOfst = charIDToTypeID( "Ofst" );
var desc48 = new ActionDescriptor();
var idHrzn = charIDToTypeID( "Hrzn" );
var idPrc = charIDToTypeID( "#Prc" );
desc48.putUnitDouble( idHrzn, idPrc, 0.000000 );
var idVrtc = charIDToTypeID( "Vrtc" );
var idPrc = charIDToTypeID( "#Prc" );
desc48.putUnitDouble( idVrtc, idPrc, 0.000000 );
var idPnt = charIDToTypeID( "Pnt " );
desc47.putObject( idOfst, idPnt, desc48 );
var idGrad = charIDToTypeID( "Grad" );
var desc49 = new ActionDescriptor();
var idNm = charIDToTypeID( "Nm " );
desc49.putString( idNm, """Grau, Wei�""" );
var idGrdF = charIDToTypeID( "GrdF" );
var idGrdF = charIDToTypeID( "GrdF" );
var idCstS = charIDToTypeID( "CstS" );
desc49.putEnumerated( idGrdF, idGrdF, idCstS );
var idIntr = charIDToTypeID( "Intr" );
desc49.putDouble( idIntr, 4096.000000 );
var idClrs = charIDToTypeID( "Clrs" );
var list5 = new ActionList();
var desc50 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc51 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc51.putDouble( idRd, 0.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc51.putDouble( idGrn, 0.000000 );
var idBl = charIDToTypeID( "Bl " );
desc51.putDouble( idBl, 0.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc50.putObject( idClr, idRGBC, desc51 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc50.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc50.putInteger( idLctn, 0 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc50.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list5.putObject( idClrt, desc50 );
var desc52 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc53 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc53.putDouble( idRd, 255.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc53.putDouble( idGrn, 255.000000 );
var idBl = charIDToTypeID( "Bl " );
desc53.putDouble( idBl, 255.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc52.putObject( idClr, idRGBC, desc53 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc52.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc52.putInteger( idLctn, 4096 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc52.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list5.putObject( idClrt, desc52 );
desc49.putList( idClrs, list5 );
var idTrns = charIDToTypeID( "Trns" );
var list6 = new ActionList();
var desc54 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc54.putUnitDouble( idOpct, idPrc, 100.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc54.putInteger( idLctn, 0 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc54.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list6.putObject( idTrnS, desc54 );
var desc55 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc55.putUnitDouble( idOpct, idPrc, 100.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc55.putInteger( idLctn, 4096 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc55.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list6.putObject( idTrnS, desc55 );
desc49.putList( idTrns, list6 );
var idGrdn = charIDToTypeID( "Grdn" );
desc47.putObject( idGrad, idGrdn, desc49 );
var idgradientLayer = stringIDToTypeID( "gradientLayer" );
desc46.putObject( idFlCn, idgradientLayer, desc47 );
var idstrokeStyle = stringIDToTypeID( "strokeStyle" );
var desc56 = new ActionDescriptor();
var idstrokeStyleVersion = stringIDToTypeID( "strokeStyleVersion" );
desc56.putInteger( idstrokeStyleVersion, 2 );
var idfillEnabled = stringIDToTypeID( "fillEnabled" );
desc56.putBoolean( idfillEnabled, true );
var idstrokeStyle = stringIDToTypeID( "strokeStyle" );
desc46.putObject( idstrokeStyle, idstrokeStyle, desc56 );
var idshapeStyle = stringIDToTypeID( "shapeStyle" );
desc45.putObject( idT, idshapeStyle, desc46 );
executeAction( idsetd, desc45, DialogModes.NO );
// Farbverlauf anwenden
var idsetd = charIDToTypeID( "setd" );
var desc84 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref14 = new ActionReference();
var idcontentLayer = stringIDToTypeID( "contentLayer" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref14.putEnumerated( idcontentLayer, idOrdn, idTrgt );
desc84.putReference( idnull, ref14 );
var idT = charIDToTypeID( "T " );
var desc85 = new ActionDescriptor();
var idDthr = charIDToTypeID( "Dthr" );
desc85.putBoolean( idDthr, true );
var idRvrs = charIDToTypeID( "Rvrs" );
desc85.putBoolean( idRvrs, true );
var idAngl = charIDToTypeID( "Angl" );
var idAng = charIDToTypeID( "#Ang" );
desc85.putUnitDouble( idAngl, idAng, 90.000000 );
var idType = charIDToTypeID( "Type" );
var idGrdT = charIDToTypeID( "GrdT" );
var idAngl = charIDToTypeID( "Angl" );
desc85.putEnumerated( idType, idGrdT, idAngl );
var idGrad = charIDToTypeID( "Grad" );
var desc86 = new ActionDescriptor();
var idNm = charIDToTypeID( "Nm " );
desc86.putString( idNm, """Benutzerdefiniert""" );
var idGrdF = charIDToTypeID( "GrdF" );
var idGrdF = charIDToTypeID( "GrdF" );
var idCstS = charIDToTypeID( "CstS" );
desc86.putEnumerated( idGrdF, idGrdF, idCstS );
var idIntr = charIDToTypeID( "Intr" );
desc86.putDouble( idIntr, 4096.000000 );
var idClrs = charIDToTypeID( "Clrs" );
var list8 = new ActionList();
var desc87 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc88 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc88.putDouble( idRd, 0.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc88.putDouble( idGrn, 0.000000 );
var idBl = charIDToTypeID( "Bl " );
desc88.putDouble( idBl, 0.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc87.putObject( idClr, idRGBC, desc88 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc87.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc87.putInteger( idLctn, 0 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc87.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list8.putObject( idClrt, desc87 );
var desc89 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc90 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc90.putDouble( idRd, 255.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc90.putDouble( idGrn, 0.000000 );
var idBl = charIDToTypeID( "Bl " );
desc90.putDouble( idBl, 0.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc89.putObject( idClr, idRGBC, desc90 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc89.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc89.putInteger( idLctn, 3186 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc89.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list8.putObject( idClrt, desc89 );
var desc91 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc92 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc92.putDouble( idRd, 255.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc92.putDouble( idGrn, 255.000000 );
var idBl = charIDToTypeID( "Bl " );
desc92.putDouble( idBl, 255.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc91.putObject( idClr, idRGBC, desc92 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc91.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc91.putInteger( idLctn, 3186 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc91.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list8.putObject( idClrt, desc91 );
var desc93 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc94 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc94.putDouble( idRd, 255.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc94.putDouble( idGrn, 255.000000 );
var idBl = charIDToTypeID( "Bl " );
desc94.putDouble( idBl, 255.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc93.putObject( idClr, idRGBC, desc94 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc93.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc93.putInteger( idLctn, 4096 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc93.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list8.putObject( idClrt, desc93 );
desc86.putList( idClrs, list8 );
var idTrns = charIDToTypeID( "Trns" );
var list9 = new ActionList();
var desc95 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc95.putUnitDouble( idOpct, idPrc, 0.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc95.putInteger( idLctn, 0 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc95.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list9.putObject( idTrnS, desc95 );
var desc96 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc96.putUnitDouble( idOpct, idPrc, 0.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc96.putInteger( idLctn, 3186 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc96.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list9.putObject( idTrnS, desc96 );
var desc97 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc97.putUnitDouble( idOpct, idPrc, 100.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc97.putInteger( idLctn, 3186 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc97.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list9.putObject( idTrnS, desc97 );
var desc98 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc98.putUnitDouble( idOpct, idPrc, 100.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc98.putInteger( idLctn, 4096 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc98.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list9.putObject( idTrnS, desc98 );
desc86.putList( idTrns, list9 );
var idGrdn = charIDToTypeID( "Grdn" );
desc85.putObject( idGrad, idGrdn, desc86 );
var idgradientLayer = stringIDToTypeID( "gradientLayer" );
desc84.putObject( idT, idgradientLayer, desc85 );
executeAction( idsetd, desc84, DialogModes.NO );