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

    Render options are true in disabled render tab

    SDK Help
    0
    3
    266
    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 17/06/2016 at 07:39, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      I have a VideoPostData plugin and some options are true by default even if the corresponding tab is disabled.

      For example, in Execute method in VIDEOPOSTCALL_FRAMESEQUENCE opening call, the following variables are true:

      BaseContainer data = video_post_struct->render->GetRenderData();
      shadow_options = data.GetBool(RDATA_OPTION_SHADOW);
      volumetric_lighting = data.GetBool(RDATA_VOLUMETRICLIGHTING);
      

      even if the tab is disabled:

      Bool MyVideoPost::RenderEngineCheck(BaseVideoPost* node, Int32 id) {
      	switch (id) {
      	    case RENDERSETTING_STATICTAB_OUTPUT:
      	    case RENDERSETTING_STATICTAB_SAVE:
      	    case RENDERSETTING_STATICTAB_MULTIPASS:
      	    case MY_VIDEO_POST_PLUGIN_ID:
      		    return TRUE;
      	}
      	return FALSE;
      }
      

      Is this issue going to affect the rendering procedure ? Since I use my own render engine, I don't want any Cinema4D's options to affect the precalculation speed.

      So, is it enough to simply disable the RENDERSETTING_STATICTAB_OPTIONS tab ?

      Thank you.

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

        On 20/06/2016 at 03:47, xxxxxxxx wrote:

        Hi,

        Even if the Options tab is disabled, its values are still stored in the Render Settings container with their latest state.

        But if the Options tab is disabled with your render engine, why do you access its settings?

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

          On 21/06/2016 at 02:19, xxxxxxxx wrote:

          Hello and thank you for your answer.

          If these options are enabled, is there anything that C4D does that affects the speed of my VideoPost plugin ?

          thnx again.

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