Jops
10-14-2010, 05:43 PM
Hello there,
trying to find my way into python.
gladly found out how to read out the render settings but am not able to write them.
Please tell me what I am doing wrong.
here is the code:
import c4d
from c4d import gui, documents
def main():
doc = documents.GetActiveDocument()
rs = doc.GetActiveRenderData()
print rs[c4d.RDATA_YRES_VIRTUAL]
rs[c4d.RDATA_YRES_VIRTUAL] = 400.0
print rs[c4d.RDATA_YRES_VIRTUAL]
if __name__=='__main__':
main()
Thanks,
Jops
trying to find my way into python.
gladly found out how to read out the render settings but am not able to write them.
Please tell me what I am doing wrong.
here is the code:
import c4d
from c4d import gui, documents
def main():
doc = documents.GetActiveDocument()
rs = doc.GetActiveRenderData()
print rs[c4d.RDATA_YRES_VIRTUAL]
rs[c4d.RDATA_YRES_VIRTUAL] = 400.0
print rs[c4d.RDATA_YRES_VIRTUAL]
if __name__=='__main__':
main()
Thanks,
Jops
