|
|
S <sha### [at] nocannedhamactivech> wrote:
> what would the command line string for Warp's mesh compressor to handle a
> bunch of inc files?
> "C:\meshcomp *.inc *.pcm" would be the direction of what I need.
> Compress a directory full of mesh include files.
The program supports converting just one file at a time. If you want
to automatize converting several files, you'll have to resort to any tools
your OS offers you.
In a Unix shell it would be a command like this:
for F in *.inc; do meshcomp $F $F.pcm; done
(of if you don't like the files named in the form 'file.inc.pcm' but would
like them to be named like 'file.pcm', you'll have to use a bit more
complicated command, like:
for F in *.inc; do meshcomp $F `basename $F .inc`.pcm; done
)
However, from your question I deduce that you are using Windows. If you
have the command-line version of the program, you can do something like this
in the DOS-prompt:
for %%F in (*.inc) do meshcomp %%F %%F.pcm
(It will create files with the form 'file.inc.pcm', and I don't know if
it can be made to create them otherwise.)
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|