Checking for display mode



  • 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?



  • 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



  • 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


Log in to reply