Skip navigation
GFP1963
Currently Being Moderated

Gradient Strokes

May 16, 2012 1:29 PM

Is there another way to produce gradient strokes on an object in FW other then:

 

  • layering 2 rectangles on top of each other
  • making one smaller to create the appearance of a stroke
  • applying the gradient (or any other effect) to the bottom object?

 

I am not too good with Photoshop (I find it very frustrating but I think I better get on board) and opened a .psd file in FW. The border of the graphic was identified as 'layer1'. When the object is selected you can resize it but cannot apply a stroke. There is a 'Photoshop Live Effects' filter active with the 'Gradient Overlay' option selected. I could not adjust the color of the 'border' so had to reproduce it in FW using the above steps.

 

This is a .jpg export of the what was in the .psd file:

grad_stroke.jpg

 

and this is what I created in FW using the steps above:

 

grad_stroke_fw.jpg

Just seems like there would be an easier way.

 
Replies
  • Currently Being Moderated
    May 16, 2012 5:16 PM   in reply to GFP1963

    Not sure about the best Photoshop-to-Fireworks workflow, but here are a couple ideas:

     

    • To avoid having to draw the same shape twice, you can Clone the original object and then Transform (Command-T), holding the Shift key to maintain proportion and the Option key to transform from center.
    • You can convert your two rectangles to a single composite path using Command-J (Modify > Combine Paths > Join). This may change the way the gradient renders within the shape, though. And it doesn't make the "stroked object" any easier to create. You could also just group the two rectangles to make them easier to move, etc.
    • Instead of creating two rectangles, you can create a single rectangle and then apply the Modify > Alter Path > Expand Stroke... command. I've always found this command completely unintuitive, but for a rectangle I think it's pretty simple. Start with a simple unstroked object, then in the Expand Stroke command dialog, enter the desired stroke width (under Width). The result will be composite path, much like in my first suggestion. (To me, this command acts more like "expand path" not "expand stroke"; maybe that's why I've always found it so confusing. Also, it doesn't do a very good job with circles.)

     

    Incidentally, Adobe just added the ability to apply gradients to strokes in Illustrator CS6.

     
    |
    Mark as:
  • Currently Being Moderated
    May 16, 2012 4:58 PM   in reply to GFP1963

    Here's a trick I like to use to create the appearance of a gradient stroke.

    1) Duplicate the path object (a rectangle in this case).

    2) With the duplicate selected, choose Modify > Alter Path > Expand Stroke.

    3) Try a width of 4, the first corner style, leave the Miter limit at default, and choose the first end cap style.

    4) Click OK.

    5) Fill with the gradient of your choice.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2012 7:57 PM   in reply to GFP1963

    Sorry not to answer your last question; I do enough pontificating on specific issues that I was hesitant to tackle a broad question like that.

     

    Getting back to your first question, there's an option that both Linda and I missed. It's a newer feature that's somewhat buried in the Paths panel: Convert Strokes to Fills, the third option under the "Alter Paths" section. It works exactly the way I'd expect the "Expand Stroke" command would work. You simply apply a stroke to the object, then select Convert Strokes to Fills, and the stroke gets converted to a composite path object. From there, you can apply a Gradient fill to the object, much like in your initial example.

     

    I imagine this is closer to the answer you were hoping for. It's definitely more intuitive than layering multiple objects in order to 'fake' a stroke, and easier than the Expand Stroke command. (It still drives me nuts that "Expand Stroke" isn't called "Expand Path"—it has nothing to do with stroke!)

     

    The Paths panel was created by developer Aaron Beall who's created a number of useful extensions for Fireworks. The "Convert Strokes to Fills" command is his own creation; it was never an official Fireworks command prior to its inclusion in the Paths panel. Hopefully, this will help to remind me of its existence in the future.

     

    http://fireworks.abeall.com/

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 8:42 AM   in reply to GFP1963

    Oh! I'm sorry about the miscommunication here.

     

    I called it the "Paths" panel but it's technically the "Path" panel and it should be installed by default in Fireworks CS5. If it's not already visible, you can find it under Window > Others > Path.

     

     

    Path panel in CS5.png

     

     

    The version that's on Mr. Abeall's website is an older legacy version, for FW8 and CS3 users, according to his text. (And then there's also a set of Path commands that offer many of the same functions.) I was including the link to his site in case you might be interested in exploring other extensions.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 9:56 PM   in reply to groove25

    Thought I should mention that Aaron Beall has been tweaking the Path panel released with CS6 (to fix a few bugs) and has released an updated version of the panel that will likely work in CS5 as well.

     

    http://fireworks.abeall.com/extensions/#Path

     

    If interested, I'd exercise caution and create a backup of the existing Path panel first (located in the Application > Configuration > Command Panels > Others folder), then go ahead and try installing the new version. Based on your previous post, I was a bit concerned that you might have accidentally overwritten the default CS5 version; I wasn't sure what happened there. In any case, I'm glad to see that this new version is now available. It does offer some improvements over the CS5 version.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points