Overlay Removal via Scripts

Suggestions + Info on development of R4 visuals

Moderators: rabidhamster, Rovastar

Overlay Removal via Scripts

Postby Miles » Sat Aug 07, 2004 8:36 pm

Hi,
I'm wondering if anyone can help me with this problem.
Using the R4 menu's, If you add an overlay (e.g. Fade Out) the video fades out slowly which is perfect. If you then remove the overlay using enter it fades in slowly which is again ideal, spacebar makes the overlay snap away.

When controlling the overlays from the web interface or via scripts, starting the overlay using: addoverlay(find([name],[overlay fadeout])) works fine. However when removing it using: removeoverlay(find([name],[overlay fadeout])) is snaps the overlay away rather than fading in.

Does anyone know why this might be happening or what I'm doing wrong?

Also has there been any further progress with the Video(AVI) plugin as I think it has such potential. It plays files perfectly but I would love to be able to have it stop the file when you switch to a different scene, then I could have multiple AVIs and use it to play all my movies. Perfect.

Thanks in advance for any help that anyone can give me,
R4 is really really clever. I'm majorly impressed.

I'd also like to license it for the school that I work at for use during plays and dance shows etc.. any chance of a discount for a charity :-D

Thanks again,

Miles.
Miles
 

Postby rabidhamster » Sun Aug 22, 2004 7:17 pm

I'm going to try doing a cut-down version for non-profit stuff, but at the mo thats some way off.

to tell an overlay to go away slowly, you have to 'ask' it rather than just taking it out. You do that using settweak. The code in the web interface (cmd.html) is as follows:

if(equal(getinf(http_sc,[tweak_kill]),[]),[removeoverlay(http_sc)],[settweak(sc,getinf(http_sc,[tweak_kill]),0);]);

this takes the overlay away if it can't be asked, but most overlays canm be asked anyway now, so you could just do:

settweak(sc,getinf(sc,[tweak_kill]),0);

so set up 'sc' to the scene number, you can do the following first:

set([sc],find([name],[overlay fadeout]));

I'm going to put some effort into the Video player soon. people are starting to use it more and its a bit inadequate. Give it a month or so anhd it should be done (i have to start a new job and move first :)

Good luck - glad to see you're using the scripting

- Gordon
rabidhamster
Site Admin
 
Posts: 1100
Joined: Fri Mar 21, 2003 12:31 pm
Location: Cambridge, England


Return to R4

Who is online

Users browsing this forum: No registered users and 15 guests

cron