I'm trying to import a series of files and render them, with castshadows on. I'm currently having problems switching on cast shadows, and also selecting which renderer I want to use (would be nice to try a few different ones to see the differences)
My script is as follows:
for i = 1 to 4 do
importFile ("$scenes/Untitled"+(i as String)+".wrl") #noPrompt
render camera:($bencam01) outputFile: ("$scenes/Untitled"+(i as String)+".jpg") vfb:false #noPrompt
saveMaxFile ("$scenes/Untitled"+(i as String))
I have one light in the scene, named Light01. Would really appreciate it if somebody could help me switch on castshadows for Light01, and then select the renderer.