POV-Ray : Newsgroups : povray.binaries.programming : #system patch : Re: #system patch Server Time
28 Apr 2024 14:58:15 EDT (-0400)
  Re: #system patch  
From: Le Forgeron
Date: 27 Nov 2003 09:26:34
Message: <3fc6099a@news.povray.org>


> This is perhaps the simplest patch ever written,
> but is nevertheless of considerable power.  It is
> an implementation of a "#system" directive -- similar
> in syntax to the "#render" directive.  However,
> instead of writing the associated string to an
> output stream, it uses it as an argument to the
> C "system()" function.
> 
> The power is that code and/or image generators can be
> called from within POV scripts.  Even POV itself could
> be recursively called -- those "recursive art" images
> which are so popular can thus be fully specified within
> a single .pov file.
> 
> Other options include the calling of such external codes
> as torpatch or gforge from within POV.
> 
> Basically, it's a poor man's #macro, but with considerably
> extended capabilities.

It's also a can of worms for viral infection...
I guess your next step will be to have an 'emacs'-like command 
extension in the pov code, just to read the newsgroup in 
pov-script...

IMNSHO, "#system" is dangerous and unwanted.


Post a reply to this message

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