All objects have an 'OutputAlpha' public property (True/False). This property will get and set whether the object will affect the output's alpha channel. This will toggle the alpha checkbox on the rendering tab:
A script would turn the alpha off of the object called 'Sphere1'. With the output alpha off the sphere object will only be shown on the Fill channel and not the Key/Alpha channel of the XPression output.
dim Sphere as xpBaseObject
self.getobjectbyname("Sphere1", Sphere)
Sphere.OutputAlpha = True
With a few more line of script you could make a keyboard shortcut that could toggle a scenes alpha on and off using a keyboard shortcut to run a script (in keyboard/GPI mapping). Like this:
dim scene1 as xpscene
dim output as xpOutputFramebuffer
dim Sphere as xpBaseObject
Engine.GetOutputFramebuffer(0, output)
output.getSceneOnLayer(0, Scene1)
Scene1.getObjectByName("Sphere1", Sphere)
if Sphere.OutputAlpha = True
Sphere.OutputAlpha = False
else Sphere.OutputAlpha = True
end if
You'll still need to put every object in the scene in one group and toggle the group objects outputalpha on/off to get the entire scene to turn alpha on/off.
Hope that's clear - let me know otherwise!
#XPression