POV-Ray : Newsgroups : povray.general : remap RGBT color to anther RGBT color? : Re: remap RGBT color to anther RGBT color? Server Time
30 Jul 2024 12:31:44 EDT (-0400)
  Re: remap RGBT color to anther RGBT color?  
From: Tor Olav Kristensen
Date: 11 Jul 2009 11:16:10
Message: <4a58acba@news.povray.org>
caduser wrote:
> Christian Froeschlin <chr### [at] chrfrde> wrote:
> 
>> Just out of curiosity: Does this mean your CAD program comes
>> with a POV-Ray export option built in?
> Yes that is right it is one of our image output options.
> 
>> As Chris has said, textually processing the generated sdl script
>> with an editor macro (or perl script or similar) is probably your
>> best option.
> 
> So far I have been using a replace all batch but this was to test samples. The
> program has 2 options one to output full size renders for use in print and
> second to generate preview icons for browsing inside the application, this runs
> it's own internal batch of generating a temp POV then rendering and can be run
> on thousands of objects. If I have to edit them all I have to use the render
> single image so I can uncheck start render and then keep all the POV files.

You can use a single-line sed call (in unix like operating systems
or wtih Cygwin in windows) to edit as many files you like in one go.

E.g. like this:

   sed -i 's/rgbt <0.,0.,0.,0.>/Gray20/' *.pov

Alse see:

   http://unixhelp.ed.ac.uk/CGI/man-cgi?sed
   http://www-h.eng.cam.ac.uk/help/tpl/unix/sed.html
   http://www.cygwin.com/

-- 
Tor Olav
http://subcube.com


Post a reply to this message

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