- We've already looked at adding objects to states, as well as adding a state to an MSO. But the state we added was a group, so it was treated as a single object. What if you had multiple objects to add as a single state? Let's take a look at how to handle that situation. I have my multi-state object here, and the file that I have open is called "add objects" from your exercise files. I've got the MSO selected, and let's just open the Object States panel to take a look.
If you've been following along, you'll notice that I'm missing a state. And it's the start state that we've been using in the past. Now, for the purposes of this exercise, I have pulled that out. And I'm going to go ahead and close this panel up, and I'm going to open up the Layers panel. I'm going to turn off the MSO completely so that we can see what that content looks like on our new state content layer where I tucked that away. And if I expand this, you can see I just have a whole bunch of objects on this layer.
What I want to do though, is I want to take all of this content, and I want to add it as a single state. So let's take a look at what happens if I select everything on this layer with an Option click. And sure enough, I've got everything selected. Let's turn on this layer so that I can work with the MSO underneath it. And I'm going to open up this layer as well. And I can see here's my MSO. I'm going to select that with a shift click. So now I've got the MSO selected.
I've got the content I want selected. And now I'm going to go to the Object States panel. In the past if I wanted to add this as a state, I could've just clicked on this button Convert selection to multi-state object. Let's see what happens if I do that just the way it is. This is not what I want. All of those individual objects have come in as individual states. So let's just go and use Command+Z to undo that. And I still have everything selected.
And there's a little bit of text in this Object States panel giving me a clue as to what to do. And what it's telling me is option click to keep the objects in the same state. So let's go ahead and click this button, but I'm going to hold the Option key down while I'm doing so. And this time, sure enough, it brought all of that content in as a single state. Now all I need to do is just drag this up to the top and click on this, and just rename it "start," and I'm good to go.
So as you can see, a modifier key, in this case, the Option key or the Alt key on windows, can make a big difference in the resulting MSO.
- Working with the Object States panel
- Creating content for basic multistate objects (MSOs)
- Using layers and pages to create MSOs
- Adding and removing states
- Adding content
- Adding objects as states
- Controlling MSOs with buttons
- Using MSOs for interactive content
- Nesting MSOs