I'm doing some rendering tasks at the moment which require the exact viewpoint to be replicated for every single render. The rendering tasks are very tedious and repetitive, so I was hoping to write a script to automate this. Is this possible in ASL?
I haven't really done a lot of scripting in Anim8tor, but a quick look suggests that ASL is perhaps aimed at modelling and animation tasks, but I'm not sure if it's capable of scripting user actions, etc.
For example, after setting up a Custom Viewpoint, the script might need to do some or all of the following:
(pseudo code)
Initialize/specify Renderer
Perform AA Setup (set SPP, Sampling Method)
foreach <object> in <list of objects>
{
foreach <material> in <list of materials>
{
-- apply material to object
-- Render -> Render Image
Select Antialiased
Select Image + Alpha Channel)
-- Save the rendered scene as a PNG to a specified Output Folder with a unique filename genarated using some convention such as:
<obj-id><material-id>-<obj-id><material-id>-<obj-id><material-id>-<obj-id><material-id>.png
-- Close render window
}
}
The end result would be a folder containing a rendered PNG with alpha channel for each combination of object / material.
eg. a couple of example filenames using this convention might be:
01black-02white-03-green-04-blue.png
01white-02white-03-stone-04-tartan.png
Can these sort of tasks be automated in ASL?
Cheers
CC