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

    physical not activating

    Scheduled Pinned Locked Moved PYTHON Development
    13 Posts 0 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 04/02/2017 at 03:51, xxxxxxxx wrote:

      Have a look a thread i did a week ago 🙂
      https://developers.maxon.net/forum/topic/9898/13335_solvedcreate-new-renderdata

      I'm not sure but it's probably RDATA_RENDERENGINE_PHYSICAL

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 06/02/2017 at 02:40, xxxxxxxx wrote:

        Hi,

        I think, this is solved. I'd just like to add a link for future readers:
        In the C++ SDK documentation there's a manual on RenderData, that might be helpful in this context.

        Furthermore I can acknowledge that RDATA_RENDERENGINE_PHYSICAL is the correct ID for physical renderer.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 06/02/2017 at 09:48, xxxxxxxx wrote:

          cool we got physical to turn on!

          but I still can't edit the sampling subdivisions, shading subdivision(min),shading subdivision(max), error threshold, or any other setting in the physical render settings! they still are not mentioned in the documentation including the rdata manual and post effect manual or any other manual i can find.

          I don't understand how I am supposed to even find this information? am i supposed to just guess wildly until something sticks?

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 06/02/2017 at 10:53, xxxxxxxx wrote:

            Hi,

            the easiest way to find parameter IDs, is to open the Console window (Shift-F10) and in your case the render settings. There is an input field at the bottom of the Console. Simply drag the parameter in question onto this input field to get the ID.

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              On 06/02/2017 at 11:30, xxxxxxxx wrote:

              the setting i'm trying to get don't work that way. give it a try.

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                On 06/02/2017 at 11:55, xxxxxxxx wrote:

                Just an exemple but I really suggest you to re-read the thread link I provided in my last post.

                import c4d
                  
                def main() :
                    rd = c4d.documents.RenderData()
                    rd_bc = rd.GetDataInstance()
                    
                    rd_bc[c4d.RDATA_RENDERENGINE] = c4d.RDATA_RENDERENGINE_PHYSICAL
                    
                    physical_vp = c4d.BaseList2D(c4d.RDATA_RENDERENGINE_PHYSICAL)
                    physical_vp[c4d.VP_XMB_RAYTRACING_SAMPLES] = 10.0
                    rd.InsertVideoPost(physical_vp)
                    
                    rd_bc[c4d.RDATA_XRES] = 1920.0
                    rd_bc[c4d.RDATA_YRES]  = 1080.0
                    rd_bc[c4d.RDATA_FRAMERATE] = 25.0
                    rd_bc[c4d.RDATA_FORMAT] = c4d.FILTER_JPG
                    rd_bc[c4d.RDATA_PATH] = "test"
                    
                    c4d.StopAllThreads()
                    doc.InsertRenderDataLast(rd)
                    doc.SetActiveRenderData(rd)
                    c4d.EventAdd()
                    
                if __name__=='__main__':
                    main()
                
                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  On 06/02/2017 at 12:16, xxxxxxxx wrote:

                  you still did not get into the physical settings! I know how to do what you just showed! the default physical render settings are too low of quality. I need to adjust the sampling subdivisions, and other such setting in the physical tab. see the second image that has orange highlighted settings. those settings cannot be dragged and dropped. i cant find them in the documentation, and they are not what you just demonstrated.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    On 06/02/2017 at 12:31, xxxxxxxx wrote:

                    For me everything working correctly.
                    http://recordit.co/2xajPGoOGL

                    If you want to edit the existant instead of physical_vp = c4d.BaseList2D(c4d.RDATA_RENDERENGINE_PHYSICAL) you have to list all VidepoData with rd.GetFirstVideoPost() then with .GetNext() you chekc each one if it's the RDATA_RENDERENGINE_PHYSICAL ID with vp.CheckType(RDATA_RENDERENGINE_PHYSICAL)

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      On 06/02/2017 at 12:54, xxxxxxxx wrote:

                      wow thank you! in the video you posted it does drag and drop, i guess my version doesn't do that. I did not know they were called vp_xmb... I did see those names in the documentation but they had no description at all.

                      Thank you so much!

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        On 07/02/2017 at 02:55, xxxxxxxx wrote:

                        Thanks, gr4ph0s for posting the explanatory video.
                        Just a small addition. When you have found out one of the IDs via Drag and Drop it might be faster to search the resource files for it and see all the other parameters listed directly there. The resource files can be found in the installation folder under resource/modules.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post