LScript (Layout) adds a projector style flicker to an animation.
Compatible with Newtek LightWave 9.6 and above.
// LScript Image Filter - www.StephenCulley.co.uk
//
// web address: http://www.stephenculley.co.uk
// email address: email@stephenculley.co.uk
/*
LScript Image Filter - Shutter
Image_Shutter.ls
*/
@version 2.5
@warnings
@script image
@name *Shutter
// Title
sTitle = "*Shutter";
// Version
sVersion = "v1.0";
nAmount = 0.2;
create
{
setdesc(sTitle + " : " + nAmount);
}
process: ifo
{
iProgress = ifo.height;
if(runningUnder() != SCREAMERNET) moninit(iProgress);
nShutter = randu() * nAmount;
for(i = 1;i <= ifo.height;++i)
{
for(j = 1;j <= ifo.width;++j)
{
ifo.red[j,i] = ifo.red[j,i] - nShutter;
ifo.green[j,i] = ifo.green[j,i] - nShutter;
ifo.blue[j,i] = ifo.blue[j,i] - nShutter;
}
if(runningUnder() != SCREAMERNET) if(monstep()) return;
}
}
load: what,io
{
if(what == SCENEMODE)
{
nAmount = io.read().asNum();
setdesc(sTitle + " : " + nAmount);
}
}
save: what,io
{
if(what == SCENEMODE)
{
io.writeln(nAmount);
}
}
options
{
reqbegin(sTitle + " " + sVersion);
// Control
ctrl_c0 = ctlnumber("Amount",nAmount);
// Developer
ctlsep();
ctrl_dev0 = ctltext("","developer: Stephen Culley","http://www.stephenculley.co.uk");
return if !reqpost();
nAmount = getvalue(ctrl_c0);
setdesc(sTitle + " : " + nAmount);
reqend();
}
https://drive.google.com/open?id=1cR_q2GVUAJHumic1-A3eXV16acQnVTWs
No comments:
Post a Comment