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 22:20:37 EDT (-0400)
  Re: bash: povray INPUT_PNG.png MY_INI.ini  
From: Nicolas Calimet
Date: 30 May 2007 14:43:13
Message: <465dc5c1@news.povray.org>
Not sure what you're trying to do exactly, but let's see:

> i) For every PNG I am working with, create a different povray  file where
> the PNG is referenced and used.

	You might have a unique scene.pov file that uses an imgfile variable
which is initialized at the command-line:
http://povray.org/documentation/view/3.6.1/220/

	Thus, for your bunch of PNG image files, do e.g.:

#!/bin/sh
for file in `ls *.png`; do
   povray scene.pov [options] Declare=imgfile=$file
done

	- NC


Post a reply to this message

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