Ground Shadows

Started by andreweder, February 08, 2016, 04:38:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andreweder

I have a bunch of product scenes which I'd like to add shadows to and then render, which seems like a perfect candidate for a script. However, after looking through the sample scripts and the documentation, I can't figure out a way to turn on the Ground Shadows setting in the Environment tab. Is there a way to access this via scripting? Thanks.

theAVator

What version are you using?

In KS5 and KS6 under the Environment tab there are 3 top level options: Settings, Background, Ground. If you expand Ground, there should be 3 checkboxes: Ground Shadows, Ground Reflections, Flatten Ground, plus a slider for the ground size.

Just make sure Ground Shadows is checked.

If you're on an earlier version, I'm not certain - I picked up the software at Ver.5.

andreweder

Sorry if I was unclear - I'm trying to do this using the Python Scripting feature added in KeyShot 6 instead of manually turning it on across hundreds of scenes.

mertmg

any answers on this one?

fsong

I don't think there is a function to set the ground shadow for now. The workaround may be to import the plane and set its material to "ground".

Niko Planke

Yes i  am afraid there is no simple way to turn of the ground shadows.

An other way without the need of additional geometry, would be to import the models into prepared bip file with disabled/enabled shadows.
In this order:
open prepared bip,
import model
set desired environment
save file.
and repeat.

You should also be able to use: getEnvironmentImage(...) , so first open the model and get the environment image, open the prepared and set the environment.