POV-Ray : Newsgroups : povray.programming : POV pipes : Re: POV pipes Server Time
28 Jul 2024 10:24:12 EDT (-0400)
  Re: POV pipes  
From: Fabien HENON
Date: 8 Apr 2002 17:38:18
Message: <3CB20CE7.10109@club-internet.fr>
Fabien HENON wrote:

> I am writing an editor for POV that can fire up raytraces.
> 
> It is written with Tkinter (a GUI for Python).
> I have been stuck for a week with a problem and can't get over it.
> I asked a python newsgroup, but they were not able to help me.
> I think the problem comes from the way POV outputs both the rendered 
> line to the console and the raytraced image.
> After the raytrace, there is still another output about the stats.
> 
> 
> With the command below I can only get the credits as though I do a mere 
> "x-povray". I don't get any picture.
> Is there someone out there who can tell me how POV pipes its streams?
> (pipe in, pipe out, pipe err,....)
> 
> Thanks
> Here is the code
> 
> 
> cmd= "/bin/sh x-povray +i/mnt/win_c/image/pov/7.pov +w320 +h240 -f +dgt"
> 
> pin,pout,perr=popen2.popen3(cmd) # three pipes are generated
>                 #  from this command
> 
> pipe_out=pout.readlines()      # this is the output
> 
> 
> self.text.insert('end',pipe_out) # redirect the output to the 
> Tkinter                         # application
> 

I forgot to say : I use Linux ( with pipes that was nearly obvious)


Post a reply to this message

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