Hey.
Help me please.
The problem with Framebuffer.
One base-scene, with a parameters 0 or 1, starts another scene-timer at a different level.
In the same base-scene, there is a framebuffer test, if is the scene-timer on the desired layer. If is it true, nothing happens, if is false, then set online scene-timer.
In the seqence list there are several scenes with the same parameter 1, that is, the scene-timr is OnLine. And the scene-timer should remain in state on, while the main ones change in the list. But sometimes this scene-timer disappears from the layer. There is no exact moment of disappearance. Always different.
The script is in the tabs OnBeforeOnline.
The scene-time have in-out animations, but disappears by the cut.
Script.
'---------------------------------------------
dim timer_txt_on_off as xpBaseObject
dim Scene_timer_on as xpscene
dim Scene_timer_off as xpscene
Dim Scene_temp as xpscene
Dim outFB as xpoutputframebuffer
Dim bTemp AS boolean
Self.GetObjectByName("Timer on/off", timer_txt_on_off)
bTemp = false
Engine.getoutputframebuffer(0, outFB)
bTemp = outFB.getsceneonlayer(100, Scene_temp)
self.project.GetSceneByName("Timer_ON", Scene_timer_on)
self.project.GetSceneByName("Timer_OFF", Scene_timer_off)
if timer_txt_on_off.text="ON" then
bTemp = outFB.getsceneonlayer(100, Scene_temp)
if bTemp=false then
Scene_timer_on.SetOnline (0, 100)
end if
end if
if timer_txt_on_off.text="OFF" then
bTemp = outFB.getsceneonlayer(100, Scene_temp)
if bTemp=true then
Scene_timer_off.SetOnline (0, 100)
end if
end if
'-----------------------------------------
And in the tab OnBeforeOffline the script setoffline timer
'-------------------------------
dim timer_txt_on_off as xpBaseObject
dim Scene_timer_on as xpscene
dim Scene_timer_off as xpscene
Dim Scene_temp as xpscene
Dim outFB as xpoutputframebuffer
Dim bTemp AS boolean
Self.GetObjectByName("Timer on/off", timer_txt_on_off)
bTemp = false
Engine.getoutputframebuffer(0, outFB)
bTemp = outFB.getsceneonlayer(100, Scene_temp)
self.project.GetSceneByName("Timer_ON", Scene_timer_on)
self.project.GetSceneByName("Timer_OFF", Scene_timer_off)
if bTemp=true then
Scene_timer_off.SetOnline (0, 100)
end if
'-------------------------------
Sorry for my English. )
Thanks.