Here is Text3. If you have a slowish connection, you may have seen the lake stretched to fit the new diminsions of the sunset before the sunset picture blended in. This could be avoided by pre-loading the sunset image. (I left it this way on purpose to illustrate the possible problem.)
4. While a blend in underway, we don't want another one to be started on the same object. Thus there is script included that toggles a counter. When the counter is on, a blend is already running, and a script for another blend won't run. This can also be handled by checking the status of the transiton using an expression like: object.filters.blendTrans.status. The value will be 0 when not running.
Syntax & Settings
1. Set filter: For example, the images blend above is first set in STYLE with:
In STYLE the general form for a blend transition is:
Duration is the number of seconds the blend should take to complete, expressed as "seconds.milliseconds" (5.500 would be the form for five and a half seconds.)
2. SCRIPT apply, changes, play: Setting the blend in STYLE is only the beginning, however. Nothing will happen until you make some changes using SCRIPT. You must script a new source or new innerText or some such change. These changes are placed between lines which Apply() the blend and later Play() the blend. Remember that the changes are done and then the blend is played.
So a general form for such a SCRIPT would be: