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

    Implementing different render/editor settings?

    SDK Help
    0
    3
    352
    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
      Helper
      last edited by

      On 26/12/2016 at 18:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R18 
      Platform:    Mac  ;  
      Language(s) :     C++  ;

      ---------
      How does the SDS/HyperNURBS object determine whether or not to use the Editor or Render subdivision settings?

      I'm writing an object generator plugin that could greatly benefit from two separate settings to control the precision of the internal calculations. One for the editor to keep the viewport nice and fast, and another for the actual render, which would be significantly slower (but at that point, a few seconds of preparation time hardly matters).

      What is the preferred way to do this?

      -CMPX

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

        On 27/12/2016 at 02:55, xxxxxxxx wrote:

        Hi,

        In ObjectData::GetVirtualObjects() check the flags returned by hh- >GetBuildFlags(). If BUILDFLAGS_EXTERNALRENDERER or BUILDFLAGS_INTERNALRENDERER are set then this is a call from a rendering process.
        In ObjectData::Execute() check the EXECUTIONFLAGS flags for EXECUTIONFLAGS_RENDER.

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

          On 27/12/2016 at 17:49, xxxxxxxx wrote:

          Awesome! Thank you very much!

          -CMPX

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