User Guide
76 Chapter 2: The Fireworks Object Model
RectanglePrimitive
• Roundness
• pathAttributes
Note: For the complete list of path attributes properties, see “pathAttributes” on page 76.
• originalSides
• transform
To return the roundness setting for the currently selected rectangle, type the following code:
roundness = fw.selection[0].roundness;
pathAttributes
Several objects have the
pathAttributes property. The following list is the valid set of
pathAttributes subproperties that can be returned or set:
• brushColor
• fillColor
• brush
• fill
• brushTexture
• fillTexture
• fillHandle1
• fillHandle2
• fillHandle3
• brushPlacement
• fillOnTop
To return the name of brush on the current path, type the following code:
brush = fw.selection[0].pathAttributes.brush.name;