On 14/04/2016 at 15:29, xxxxxxxx wrote:
Hi guys!
I have not post in a while,but i having a small problem on Enabling the Ambient Occlusion from the Effect in the Render Settings and Inserting the settings of the Ambient Occlusion parameters , post below? any ideas? plz help!
-------------------------------------------------------------------------------------------------------
Code:
import c4d
from c4d import gui
from c4d import documents
Python
def main() :
doc = documents.GetActiveDocument()
doc = documents.GetActiveRenderData()
videoPost = c4d.BaseVideoPost(c4d.VPambientocclusion)
# set parameters two different
videoPost[c4d.VPAMBIENTOCCLUSION_APPLYTOSCENE] = True
videoPost[c4d.VPAMBIENTOCCLUSION_MINLENGTH] = 0.1
videoPost[c4d.VPAMBIENTOCCLUSION_MAXLENGTH] = 0.1
videoPost[c4d.VPAMBIENTOCCLUSION_DISPERSION] = 0.1
videoPost[c4d.VPAMBIENTOCCLUSION_ACCURACY] = 0.1
videoPost[c4d.VPAMBIENTOCCLUSION_MINSAMPLES] = 1
videoPost[c4d.VPAMBIENTOCCLUSION_MAXSAMPLES] = 1
if __name__=='__main__':
main()
-------------------------------------------------------------------------------------------------------
Cheers,
Ashton