Join Ray Villalobos for an in-depth discussion in this video Creating commands with the History panel, part of Fireworks CS6 Essential Training.
The History panel is one of Firework's gems. It records every action you perform within Fireworks, and it also lets you do one little trick. It allows you to build your own commands based on some of the actions you've performed. So let's take a look. I'm going to create a new document, just Command+N or Ctrl+N on a PC, just give it an 800 by 500 pixel Width and Height, and hit Enter to accept. And then I'm going to click on this Rectangle tool. I have the History panel already showing here. If you don't have that showing, just go to the Window menu and select History.
So now when I draw something on my workspace, the History panel is going to show me not only what I'm doing, but it's going to record every step. So I do that Rectangle, and then I'm going to make sure that it's 90 pixels by 90 pixels, so I'll type those values right here. Notice that it's recording the transformation. I'm also going to add some Roundness to it, about 25 pixel looks really good. It recorded that as well. And I'm going to click on the Pointer tool and click and drag while holding down the Option key and the Shift key to constrain that movement and let go.
That made a duplicate of the first rounded rectangle. I hit Command+Y a couple of times. That just makes some extra copies. And then I'll select all, Command+A or Ctrl+A on a PC, and I'm going to go to Align and make sure that this are aligned 15 pixels in between each one of these elements horizontally, so I'll click on this. It looks like I did it just right, so it didn't do any adjustment there. Back to History so you can see what's going on. I had added a Command Script, and then I'm going group these elements.
There's the Group in the History panel. Click and drag while holding down the Option key and the Shift key, and then I'm going to hit Command+Y a couple more times. On purpose, I made it a little taller than it should be, so Command+A to select everything, back to Align, and this time I'll space evenly vertically 15 pixels, and now I got a perfect grid. I will Command+G to group those items together. And if I go back to the History panel, scroll this up right here, there's all my steps to create that perfect grid.
So I use grids a lot in my layouts, so I may want to save this as a command. To do that, I'm going to click on the first and the last item in this list here, and I'm holding down the Shift key. It's going to make sure that I grab all of them. Then I'm going to hit this button right here, it's called Save steps as a Command. Click on that and I'm going to give this thing a name, blackgrid. Just for kicks, I'll not put a space. Hit OK and that becomes now a command that I can access through the Commands menu. Here's my blackgrid command. I'm going to open up a new document, hit Enter, and now if I want to create a new grid, all I have to do is go to the Commands menu, select this grid, and there it is, and I can ungroup it a couple of times.
And if I wanted to, I can get rid of the last few pieces of the grid and make a 3 by 3 grid. So it's really cool, just taking some steps in the History panel, I was able to create a command that I can use over and over in a lot of my projects. If you want to get rid of a command, just go to Manage Saved Commands right here and you can get rid of any of these commands or rename them. So I'm going to click OK, I don't really want to do anything to it. Now the History panel is just more powerful than that. You can back up, like I said, back to any other command.
You can actually delete commands from here, or you can say I want to back up to the point that I had just this group right here. And then from here on I want to do something else, so I'm going to do that. Notice that it gets rid of everything afterwards. So when you put your position right here, this little marker, anything you do after that marker will become the new sequence that it stores in the History panel. You don't have to copy a contiguous group of elements from this list. You can hit the Command key and just copy some of the commands.
Sometimes some of these commands are not really necessary for the command that you're saving, so you just Command-click on the ones that you want to save, and then you can save those as a command. You can also copy steps to the clipboard. You can also apply any sort of filter, any sort of lines. So anything you can save as a history item is going to be available to you to save as a command, and that's going to let you build some really powerful stuff very easily.
- Working with the menus, panels, and object properties
- Saving and exporting files
- Optimizing graphics
- Applying opacity, blending modes, and live filters to drawing objects
- Drawing vector shapes
- Masking objects
- Animating with states
- Using the 9-slice scaling tool
- Creating symbols and symbols for sprites
- Using batch commands
- Creating jQuery Mobile templates