Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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. AG_Vivimagic
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    AG_Vivimagic

    @AG_Vivimagic

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location London

    AG_Vivimagic Unfollow Follow

    Latest posts made by AG_Vivimagic

    • RE: Creating a Playblast script falling at the hurdle.

      That is perfect, thank you for being through and concise, lifesaver.

      posted in Cinema 4D SDK
      A
      AG_Vivimagic
    • Creating a Playblast script falling at the hurdle.

      I am creating a playblast script where it will automate the render settings for the project file and playblast render settings. Code below.

      import c4d
      from c4d import documents, plugins, storage, utils
      
      doc[c4d.DOCUMENT_FPS] = 25 #set file fps
      
      newRenderData = c4d.documents.RenderData()
      newRenderData.SetName('Playblast')
      doc.InsertRenderDataLast(newRenderData)
      doc.SetActiveRenderData(newRenderData) #make it active
      newRenderData.SetBit(8) #make it selected
      
      render_data = documents.GetActiveDocument().GetActiveRenderData()
      c4d.CallCommand(12161) # Render Settings
      newRenderData[c4d.RDATA_RENDERENGINE] = 300001061 #create Viewport Renderer
      c4d.EventAdd()
      newRenderData[c4d.RDATA_XRES] = 1920 #width
      newRenderData[c4d.RDATA_YRES] = 1080 #height
      newRenderData[c4d.RDATA_FRAMERATE] = 25 #set render fps to 25
      newRenderData[c4d.RDATA_FRAMESEQUENCE] = 2 #Frame range to "All Frames"
      newRenderData[c4d.RDATA_FORMAT] = 1125 #MP4 format
      
      
      newRenderData[c4d.RDATA_XRES_VIRTUAL] = 1920 #width
      newRenderData[c4d.RDATA_YRES_VIRTUAL] = 1080 #height
      
      c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
      
      if __name__=='__main__':
          main()
      

      I am getting the render settings to align and execute however it is not updating the UI. It need to look like this !Untitled-1.png image url) Not this Annotation 2025-01-22 094235.jpg

      posted in Cinema 4D SDK windows python 2024
      A
      AG_Vivimagic