I have been rendering a lot images lately for my work and thought that it might be possible to automate a lot of the rendering if I just knew what to do. This would help me and fellows at work and we would save a lot of time in the long run. This is what I need:
I have an item, let's say a chair. This chair has to be rendered in 4 different camera angles which we have to be able to specify in the code, though these 4 camera angles will stay steady for the entire rendering period. After the 4 images have been rendered, the chair has to change material, and then another 4 images are to be rendered.
With a very little coding experience, I imaging something like this:
Pseudo code:
var material = "oak"; //This is the first material
var camPosition = 0;
while(i<12) {
for(j=0;j<=4;j++) {
if(i == 0) {
camPosition = 20 //Example
}
if(i == 1) {
camPosition = 40 //Example
}
... //Do this 4 times, for the 4 different angles
TakePhoto AT position = camPosition;
//Render;
}
material = "Stone";
i++;
}
So this is basically running two loops, a while loop which changes the material for the chair, and a for loop which iterates over the 4 different angles which it shall then render. I hope I made it clear and that there are some help, advice or suggestions to get.
Thanks in advance.