POV-Ray : Newsgroups : moray.win : Actuate.lua plugin, proof of concept (animation) : Re: Actuate.lua plugin, released Server Time
16 Jun 2024 19:06:54 EDT (-0400)
  Re: Actuate.lua plugin, released  
From: StephenS
Date: 1 Jan 2004 11:10:29
Message: <3ff44675@news.povray.org>
Actuate.lua 1b3 can now be found linked from:
http://ca.geocities.com/morayplugin/
Thanks go to Stephen McAvoy for feedback on earlier versions.
The plugin is a plain text file with a .lua extension.

How to use:
You must supply an 'Input_File_Name' without extension for the plugin to do
anything. The generated code will check for the existence of the file, if
not found, will send a message to the Debug stream in POV-Ray.

When the scene is parsed* the plugin will create a new file based on the
supplied 'filename' with a '_actuate.ini' appended to the end.
Example:
Input_File_Name=Myfile
The plugin will create(or overwrite if it already exists)
Myfile_actuate.ini

Go to POV-Ray, open and run this file.

The plugin will let you select most options available in a '.ini' file.
Example:
Final_Frame=5

For this example to do anything, something in your Moray scene needs to be
coded with the 'clock' variable.
In the Material editor's 'direct code'
if(clock_on=0)
    //stuff for still image
    #declare myclock=1;
#else
    //some animation
    #declare myclock=clock;
#end
texture
{
   pigment
   {
      color rgb <0.0, 0.0, 1.0*(sin (pi * myclock/2))>
   }
}
Assign this to an object. The object will change colour over the animation
from black to blue.

Currently if you want to have more than 1 setup, you can use more than 1
Actuate plugin and select/unselect Moray's export flag for each plugin.

* the scene does not need to be fully rendered, when the picture starts to
show up you can pause/cancel the render in Moray.

Comments welcome

Stephen


Post a reply to this message

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