2 Replies Latest reply on Sep 21, 2012 10:44 AM by zocadobe

    path stroke color

    zocadobe

      i tried many time  stoke color in pathitem

       

       

      example)

       

       

      pathitem.strokecolor = strokecolor( 0, 30 ,0 );

       

      right ?

      hum   very difficult

        • 1. Re: path stroke color
          Muppet Mark Level 5

          You are doing the same as in your last post… JavaScript properties are case sensitive that and you need to define your color properly… or is that VB as I would know?

           

           

          #target illustrator
          
          changeStrokeColor();
          
          function changeStrokeColor() {
            
                    var  doc = app.activeDocument;
            
                    var newRGB = new RGBColor();
            
                    newRGB.red = 0, newRGB.green = 255, newRGB.blue = 0;
          
                    doc.pathItems[0].strokeColor = newRGB;
            
                    app.redraw();
            
          };
          

           

          Presuming an open document (rgb) and a path that is stroked…

          • 2. Re: path stroke color
            zocadobe Level 1

            perpect cool

            really really thank you