Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. bonsak
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 1
    • Topics 8
    • Posts 31
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by bonsak

    • B

      Child render setting does not inhertit from parent

      Cinema 4D SDK
      • s24 python • • bonsak
      7
      0
      Votes
      7
      Posts
      1.2k
      Views

      A

      Hi,

      I stumbled upon the same problem. The script from bonsak didn't solve the problem for me.
      But thanks to a tip I found a working solution.
      It is possible to make a parent-child setup. But you have to change the values in the parent settings after creating the child settings.

      import c4d from c4d import gui import redshift def main(): #Create main render setting rd = c4d.documents.RenderData() rd.SetName('render_group') rd[c4d.RDATA_RENDERENGINE] = redshift.VPrsrenderer rd_red = redshift.FindAddVideoPost(rd, redshift.VPrsrenderer) doc.InsertRenderData(rd) #Create child render setting child_setting = c4d.documents.RenderData() child_setting.SetName('child setting') child_setting[c4d.RDATA_RENDERENGINE] = redshift.VPrsrenderer doc.InsertRenderData(child_setting , rd) redshift.FindAddVideoPost(child_setting, redshift.VPrsrenderer) doc.InsertRenderData(child_setting , rd) #Change main render settings rd[c4d.RDATA_XRES] = 1920.0 rd[c4d.RDATA_YRES] = 1080.0 rd[c4d.RDATA_FRAMERATE] = 25.0 rd[c4d.RDATA_FORMAT] = 1023671 #PNG rd[c4d.RDATA_FORMATDEPTH] = 1 #depth 16bit #Change Redshift post effect rd_red[c4d.REDSHIFT_RENDERER_ENABLE_AUTOMATIC_SAMPLING] = 0 rd_red[c4d.REDSHIFT_RENDERER_UNIFIED_MIN_SAMPLES] = 32 rd_red[c4d.REDSHIFT_RENDERER_UNIFIED_MAX_SAMPLES] = 256 rd_red[c4d.REDSHIFT_RENDERER_MOTION_BLUR_ENABLED] = 1 rd_red[c4d.REDSHIFT_RENDERER_COLOR_MANAGEMENT_OCIO_VIEW] = 'Un-tone-mapped' if __name__=='__main__': main()
    • B

      How can i set custom Databases paths in prefs with python?

      Cinema 4D SDK
      • python r21 • • bonsak
      8
      0
      Votes
      8
      Posts
      1.4k
      Views

      B

      Ok. I figured it out. The ID was wrong. It was supposed to be 465001634

      -b

    • B

      Setting texture paths with plugin on startup

      Cinema 4D SDK
      • r20 python • • bonsak
      9
      0
      Votes
      9
      Posts
      2.8k
      Views

      B

      Omg! I had an old version of the plugin defined in the Plugins list in prefs that set the paths to [].
      Blush Deluxe!
      Sorry for wasting your time. Works perfectly fine.

      Regards
      Bonsak

    • B

      Get userdata Button state on object in Python tag

      Cinema 4D SDK
      • python r20 • • bonsak
      7
      0
      Votes
      7
      Posts
      2.5k
      Views

      B

      Ah! So event_data['msg_data']['id'] is the id of the userdata.
      Didnt read your code comments 🙂
      Thanks alot!

      Regards
      Bonsak

    • B

      Set Tracers "trace link" (inExclude) field from python tag

      Cinema 4D SDK
      • r20 python • • bonsak
      3
      0
      Votes
      3
      Posts
      761
      Views

      B

      Awesome! Thanks.

      Regards
      Bonsak

    • B

      Pointcount from bevel deformer

      Cinema 4D SDK
      • python • • bonsak
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      B

      Sorry 🙂

    • B

      Screen realestate on mobil

      General Talk
      • • • bonsak
      3
      0
      Votes
      3
      Posts
      1.2k
      Views

      B

      Both reading and posting

    • B

      Set Asset Paths in python

      Cinema 4D SDK
      • python r20 • • bonsak
      5
      0
      Votes
      5
      Posts
      1.7k
      Views

      B

      Cool. Will do.