Toggling Global Illumination [SOLVED]
-
On 15/02/2016 at 07:41, xxxxxxxx wrote:
I am looking for a way to enable/disable GI. Basically the tick in front of "Global illumination" in the render menu.
Any way to do that in Python?
-
On 16/02/2016 at 01:36, xxxxxxxx wrote:
Hello,
Video posts like GI are stored in the render settings. You can obtain the current render settings from the document with GetActiveRenderData(). The video posts are stored in a list, the first element of that list can be obtained with GetFirstVideoPost(). Now you can loop trough all video posts simply with GetNext().
To disable the GI video post you have to check the type of the video post. The ID of the GI video post is c4d.VPglobalillumination. The video post is then disabled by setting the bit BIT_VPDISABLED with SetBit().
Best wishes,
Sebastian -
On 16/02/2016 at 02:25, xxxxxxxx wrote:
Thanks for the reply. I will try it. Due to keyword "video post" i also found this:
https://developers.maxon.net/forum/topic/5269/5268_py-change-gi-settings&OB=DESCThank you again!
Konstantin