An interesting question came up in the following post by Folobo:
"Is it possible to use a slideshow embedded in a big overlay slideshow?"
I'd like to rephrase this question:
"Is it possible to put a MultiStateObject (MSO) inside another MultiStateObject?"
And further: if the answer is "yes", could we put that to use with the DPS?
@Folobo – this is an interesting question. A quick test is showing that you cannot do it in the UI (correct me if I'm wrong).
Let's try it this way:
If you have two objects:
1. an MSO #1 (with two rectangles, rectangle #1, rectangle #2)
2. Another rectangle on the page: rectangle #3
Now select the two objects and make an MSO out of it (using the "Object States" panel).
You would think, now I get an MSO with two states, state 1 with rectangle #3 together with state 2 with MSO #1.
But not so:
Result: One new MSO with three states (rectangle #1, rectangle #2, rectangle #3)
Hm. I don't give up on that. Let's try it another way:
Could we select at least two objects inside a state of an MSO and make that a new MSO?
Sure, We could select two objects inside a state, but since we are *inside* an MSO the "Object States" panel does not show the possibility to make a new MSO. You can only add states or add objects to states…
Frustrating. End of story? Maybe…
Be forewarned. The following is highly experimental!
The scripting reference is showing that an MSO "MultiStateObject" object has an add()-method. And further on, that add()-method could be applied to:
And that is the key to a possible solution. We could add a new MSO to a "pageItem" object.
A simple rectangle should be qualify for a "pageItem" object; and that, of course, could reside in a state of an MSO.
So, we could add a new MSO to a rectangle inside of a MSO!
How can we access a rectangle inside a MSO? Easy: We could select it and work with that selection.
So let's do that: select the rectangle in the first state of an MSO and run this one-line-script (be sure you did select the rectangle and not the MSO or one of its states:
We now have an MSO inside another MSO!
A "generic MSO" was added with the add()-function to a selection (the container object: in our case the selected rectangle).
The "generic MSO" is a two state MSO consisting of one rectangle in each state of a very small size (10px x 10px).
At first it is invisible, because it is very likely that it is positioned outside the geometric bounds of its container object (the rectangle).
But we can customize this!
Go to the layers palette and select the new MSO, move it inside the geometric bounds of its container object, readjust its size, add states as you wish, populate the states with images, and other objects etc.pp.
So, what can we do with an MSO inside another MSO? (As I already said, this is highly experimental.)
My experiments with that are very fresh. I did not try a lot. But it seems that we could at least autoplay this MSO.
I have to test more thoroughly what is possible and what will work with buttons etc.pp…
I really like to hear from you what you will find out and if you can put it to any use.
Message was edited by: Laubender