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

    Checking for display mode

    SDK Help
    0
    3
    271
    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 10/06/2014 at 02:28, xxxxxxxx wrote:

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

      ---------
      How can I check for what display mode is active?
      I mean, if it is Gouraud, Gouraud (Lines), Quick Shading, Quick Shading (Lines), etc...
      I believe it could be with something like bd->GetParameterData(LONG id)
      But how can I know what the ID is?

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

        On 10/06/2014 at 07:49, xxxxxxxx wrote:

            BaseDraw *bd = doc->GetActiveBaseDraw();  
          GeData d;  
          bd->GetParameter(BASEDRAW_DATA_SDISPLAYACTIVE, d, DESCFLAGS_GET_0);  
          GePrint(LongToString(d.GetLong()));  //Prints the ID# for the current display setting
        

        -ScottA

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

          On 10/06/2014 at 08:39, xxxxxxxx wrote:

          Howdy,

          Originally posted by xxxxxxxx

          ...But how can I know what the ID is?...

          All of the ID's are in dbasedraw.h in the directory:

          Adios,
          Cactus Dan

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