I want to turn off animation of windows appearing and disappearing when switching between Compiz viewports.
I've tried to turn this animation off by the setting-changes listed in a bullet list below. However, windows still seem to slide or zoom out of the old viewport or into the new viewport whenever I switch viewports, rather than popping instantaneously into place like I want. Here is the script I used to test the behavior:

Here are the setting changes made in my attempts to fix the problem. (Note, several of these settings probably are irrelevant, but I haven't found a discussion that explains which, if any, are relevant to the current problem.) (Note, CCSM stands for Compiz config-settings-manager, which I installed withsudo apt-get install compizconfig-settings-manager)

• On CCSM/Effects, unchecked the Fading Windows and Animations boxes.
• On CCSM/Desktop/Desktop Wall, set target preview visibility time to zero.
• Also unchecked Show viewport switcher preview and Show live viewport previews.
• In CCSM with expo in search box, clicked expo, and
on Behaviour tab set zoom time to 0.1 (it won't go to less) and checked Immediate moves.
• Set Expo animation to Zoom (there is no animation-off option on the tab)

Summary of question: How do I turn off animation of windows appearing and disappearing when switching between Compiz viewports, and make those windows just appear as quickly as possible?

This still leaves the following problem that occurs when I run the test script shown in the question. When wmctrl issues a command to switch to a different viewport, that viewport is immediately displayed (as desired) but also a scaled-down viewport-indicator box animation appears. In a fraction of a second that box shrinks and disappears.

To deal with that issue, in ccsm click Desktop, Desktop Wall, and Viewport switch preview in turn. Change Switch target preview visibility time from 0.2 to 0. After that the test script runs cleanly.