heck...I know you all know what I mean... sometimes you can just overthink a thing.
I am trying this...
echo >> ^{$path}^^{file|noext}^.avs ImageSource("%%04d.jpg", start=0, end={clip}, fps=2,pixel_type = "rgb32")
or
echo >> ^{$path}^^{file|noext}^.avs ImageSource("%%04d.jpg", start=0, end=^{clip}^, fps=2,pixel_type = "rgb32")
but get this in both cases.
ImageSource("%04d.jpg", start=0, end=36
the 36 file in dir is correct. Where does the , fps=2,pixel_type = "rgb32") go? Is the {clip} or comma that offends syntax?
I am running as MSDOS function.
Heres the whole thing...
SetClip -e
mkdir {file|noext}
"C:\utils\mtn-2.44-win32\mtn.exe" -I -O {filepath|noext} -b 0.80 -c 10 -D 10 -g 0 -h240 -j 80 -L 4:1 -s 5 -w 2048 -P -F FFFFFF:8:Tahoma.ttf:ffFFFF:ff0000:48 "{filepath}"
Del "{filepath|noext}*_s.jpg"
cd /d {filepath|noext}
%comspec% /c "dir/b/a-d | find /v /c "::" | sfk toclip"
@Set th=, fps=2,pixel_type = "rgb32")
echo >> ^{$path}^^{file|noext}^.avs ImageSource("%%04d.jpg", start=0, end={clip}, fps=2,pixel_type = "rgb32")
much appreciate ideas!
Leo
November 16, 2008, 4:30pm
2
What's the exact output you're trying to create?
PS: I've renamed the thread to something more meaningful than "not funny anymore"
echo >> ^{$path}^^{file|noext}^.avs ImageSource("%%04d.jpg", start=0, end={clip}, fps=2,pixel_type = "rgb32")
Should return:
ImageSource("%04d.jpg", start=0, end=36, fps=2,pixel_type = "rgb32")
I am getting the 36 onto the clipboard fine, it seems to be the comma trailing {clip}.
the blah.avs file is created correctly thus
ImageSource("%04d.jpg", start=0, end=36
however, I can't get the following remainder to echo into it
, fps=2,pixel_type = "rgb32")
please disregard the obvious ($path) caca as I incorrectly pasted this from one of the test version buttons.
echo >> somename.avs ImageSource("%%04d.jpg", start=0, end={clip}, fps=2,pixel_type = "rgb32")
: for clarity
I resolved it with a different approach.
@set path={filepath|..}
mkdir {file|noext}
"C:\utils\mtn-2.44-win32\mtn.exe" -I -O {filepath|noext} -b 0.80 -c 10 -D 10 -g 0 -h240 -j 80 -L 4:1 -s 5 -w 2048 -P -F FFFFFF:8:Tahoma.ttf:ffFFFF:ff0000:48 "{filepath}"
Del "{filepath|noext}*_s.jpg"
cd /d {filepath|noext}
for /F %%i in ('dir/b/a-d ^| find /v /c "::"') do echo >> ^{$path}^^{file|noext}^.avs ImageSource("%%05d.jpg", start=0, end= %%i, fps=2,pixel_type = "rgb32")
PS leo: Yes thanks I was a little witless.