THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/10/2010 at 08:19, xxxxxxxx wrote:
Cinema 4D Version: 12
Language(s) : PYTHON ;
from c4d import gui, documents
def main() :
doc = documents.GetActiveDocument()
rd = doc.GetActiveRenderData()
# get antialiasing
AA_ = rd[c4d.RDATA_ANTIALIASING]
# set antialiasing
rd[c4d.RDATA_ANTIALIASING] = 2 #2 is best AA
I can read and set Render data (AA, resolution, and so on)
does not work (as it is a Post effect?)
how can I get and set GI settings, and how can I look up wether GI is active as a post effect.
Thanks a Lot!
On 19/10/2010 at 11:30, xxxxxxxx wrote:
first you have to iterate through the attached video posts and locate the GI video post. Just pass the render data object to this function and you get the GI video post object.
def GetGIPostEffect(rd) :
Returns the GI post effect from a passed
:return: Can be None if no GI VP found.
post = rd.GetFirstVideoPost()
post = post.GetNext()
vpgi = GetGIPostEffect(rd)
if vpgi: return
To check if its enabled or disabled use:
vpgi.GetBit(c4d.BIT_VPDISABLED) #is True if its disabled
Hope this helps!
On 20/10/2010 at 00:30, xxxxxxxx wrote:
thanks for your quick and detailed reply
Thanks a lot!!!