PDA

View Full Version : bling bling



devin
04-02-2003, 12:39 PM
This, I think, would be a simple feature but way useful for those times when you need a nap or simply want to walk away from the computer while rendering.

We already have the frame end beep which I find useless and annoying, esp. when you have co-workers that leave for the day and for some reason have it checked.

Why don't we have a render finish sound like After Effects? This is soooo simple but insanely useful and much needed as far as I see it. LW could even have its own little recognizable signature sound like AE.

/devin

Lamont
04-03-2003, 02:34 PM
Search on Flay.com, I saw that plug. It will play whatever sound you want.

d8ed
04-03-2003, 04:32 PM
here's the one link i found that's close. i searched for it on flay.

http://hem.spray.se/johan.walfridson/countdown.html

looks a bit retarded actually since you have to enter total frames, last frame rendered, and how long it took to render and it starts a timer based on those settings. frames dont all take the same amount of time to render so you're basically setting a timer to go off at a predetermined time.

it's a step above a digital kitchen timer but that's about it.

there's gotta be something better than this..

devin
04-03-2003, 04:52 PM
Check this link to the cgtalk thread out. zzuzzabuzz wrote a new .ls though I haven't had a chance to try it out.

http://www.cgtalk.com/showthread.php?s=&threadid=53597

I'm hoping it works automatically after you set it up the first time.

d8ed
04-03-2003, 05:01 PM
sounds good although it wouldnt work when i went to load it as a Master Plugin.

faulknermano
04-03-2003, 06:26 PM
why wouldnt it work? what's the error message?

d8ed
04-03-2003, 06:28 PM
"could not create data object for BlingBling plugin"

faulknermano
04-03-2003, 06:51 PM
Originally posted by d8ed
"could not create data object for BlingBling plugin"

hmm.. okay. it may be a compile problem. you can contact the writer and troubleshoot the problem.

furthermore, i'm including a script i made months back. it may not be as 'fully featured' as the one mentioned but it does give out a BLINGBLING.. :D

btw: it's also a render log thingybob.

(just copy and paste everything and save it out as an .ls file. it is also a master class lscript)




@warnings
@version 2.3
@script master
@name RenderDoneSoundMC
fileName; log; logName;
bday; bmonth; byear;
bhour; bminute; bsecs;
eday; emonth; eyear;
ehour; eminute; esecs;
bt;
scenerender = true;
flags
{
return(LAYOUT);
}
create
{

fileName = recall("RENDERAUDIO","c:\\LightWave_3D_7.0\\Renderdone.wav");
logName = recall("RENDERLOG","c:\\LightWave_3D_7.0\\Render_Log.txt");
setdesc("Post Render Functions");
}
dateTrans: d, m, y
{
if(m == 1)
rm = "Jan";
if(m == 2)
rm = "Feb";
if(m == 3)
rm = "Mar";
if(m == 4)
rm = "Apr";
if(m == 5)
rm = "May";
if(m == 6)
rm = "June";
if(m == 7)
rm = "July";
if(m == 8)
rm = "Aug";
if(m == 9)
rm = "Sept";
if(m == 10)
rm = "Oct";
if(m == 11)
rm = "Nov";
if(m == 12)
rm = "Dec";

return(d,rm,y);

}
process: event, command
{
if(event == COMMAND)
{
if(strleft(command,11) == "RenderScene")
{
log = File(logName,"a");
(d,m,y) = date();
(bday,bmonth,byear) = dateTrans(d,m,y);
(bhour,bminute,bsecs,bt) = time();
scenerender = true;
}
}
if(event == RENDER_DONE)
{
playWave();
if(scenerender)
{
(d,m,y) = date();
(eday,emonth,eyear) = dateTrans(d,m,y);
(ehour,eminute,esecs,et) = time();
ft = et - bt + 57600;
(tehour,teminute,tesecs) = time(ft);
log.writeln("\/\/ Begin LW Scene Render Log / /");
log.nl();
log.writeln(Scene().filename);
str = string("Start Frame: ",Scene().renderstart);
log.writeln(str);
str = string("End Frame: ",Scene().renderend);
log.writeln(str);
str = string("FPS: ",Scene().fps);
log.writeln(str);
str = string("Frame Step: ",Scene().renderstep);
log.writeln(str);
str = string("Frame Size: ",Scene().framewidth," x ",Scene().frameheight);
log.writeln(str);
str = string("Pixel Aspect: ",Scene().pixelaspect);
log.writeln(str);
str = string("Date Started: ",bmonth," ",bday,"\, ",byear);
log.writeln(str);
if(bhour < 10)
bhour = string("0",bhour);
if(bminute < 10)
bminute = string("0",bminute);
if(bsecs < 10)
bsecs = string("0",bsecs);
if(ehour < 10)
ehour = string("0",ehour);
if(eminute < 10)
eminute = string("0",eminute);
if(esecs < 10)
esecs = string("0",esecs);
if(tehour < 10)
tehour = string("0",tehour);
if(teminute < 10)
teminute = string("0",teminute);
if(tesecs < 10)
tesecs = string("0",tesecs);
str = string("Start Time: ",bhour," : ",bminute," : ",bsecs);
log.writeln(str);
str = string("Finished On: ",ehour," : ",eminute," : ",esecs," - ",emonth," ",eday,"\, ",eyear);
log.writeln(str);
str = string("Elasped Time: ",tehour," : ",teminute," : ",tesecs);
log.writeln(str);
log.nl();
log.writeln("\/\/ End LW Scene Render Log \/\/");
log.nl();
log.close();
scenerender = false;
}
}

}

playWave
{
if(File(fileName,"r"))
audio(fileName);
else
{
a = matchfiles("c:\\winnt","*.wav");
audio(a[1]);
}
}
options
{
reqbegin("Audio After Render");
c1 = ctlfilename("Audio",fileName,100,1);
c2 = ctlfilename("Render Log",logName,100,2);
return if(!reqpost());
fileName = getvalue(c1);
log = File(logName,"w+");
logName = getvalue(c2);
store("RENDERAUDIO",fileName);
store("LOGFILE",logName);
}
destroy
{
if(reqisopen())
reqabort();
}

d8ed
04-03-2003, 07:08 PM
do you think it might have something to do with my version of Lscript?

faulknermano
04-03-2003, 11:07 PM
it may be so. in my experience only, the only times i've ever encountered the error message is when the script itself is bad, meaning there is a run-time compile error (or simply a compile error). it may be a version problem (meaning the compiler used to compile it lsc, and the compiler used to run the script is not compatible). however, the problem is not directly version-related, if catch my meaning.