POV-Ray : Newsgroups : povray.unix : bash: povray INPUT_PNG.png MY_INI.ini : Re: bash: povray INPUT_PNG.png MY_INI.ini Server Time
1 Jun 2024 04:36:39 EDT (-0400)
  Re: bash: povray INPUT_PNG.png MY_INI.ini  
From: Christoph Hormann
Date: 31 May 2007 02:37:19
Message: <465e6d1f$1@news.povray.org>
Nicolas Calimet schrieb:
> 
> #!/bin/sh
> for file in `ls *.png`; do

i think better would be

for file in *.png ; do

since ls is not guaranteed to only print the file names AFAIK.

>   povray scene.pov [options] Declare=imgfile=$file

I think this only works for floats.

Simple solution:

for file in *.png ; do
   cp $file temp.png
   povray -iscene.pov [options] \
   -o`echo "$file" | sed 's?png$?render.png?'`
done

where scene.pov always uses temp.png

-- Christoph


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.