PDA

View Full Version : WriteFileIF, Can I make it write additional entries to the same line?


mkanel
23rd June 2004, 23:19
I wrote an AVS script to look for bad footage (blue screen or snow) and then write a text file with Trim ranges to cut out the junk. Each time WriteFileIf writes to the file it starts a new line. Can I have it just continue the line that was previously written? Could I trick it by sending a backspace character before writing? I can work around it with "\" but it's not too pretty. Right now the output looks like this:

Trim(19,\
42) ++ \
Trim(64,\
599) ++ \
Trim(621,\
689) ++ \

I don't want that last "++ \" but that's another problem.

Thanks. Mike.

toysoldier
24th June 2004, 08:46
What is WriteFileIf? I think there are so many text edit software
in WS system,I am used to use notepad to write avs.
maybe you can try another soft.

mkanel
24th June 2004, 09:08
@toysoldier,

Sorry, I should have added that I'm using Avisynth 2.55 alpha [170604]. http://prdownloads.sourceforge.net/avisynth2/AviSynth_170604.exe?download

WriteFIleIf is a new function described in the documentation that comes with the 2.55 download. You can use it to have Avisynth output information to a text file.

Mike.


Edit:
I think this was the wrong place to ask a question about features that aren't officially released. I've made a different post here if you're interested. http://forum.doom9.org/showthread.php?s=&postid=515937#post515937