On 13/06/2014 at 02:10, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi Folks,
I've seen some python code on how to turn some viewport filters on/off, but the c++ was a little confusing to me (maybe the syntax?). Is someone in the know able to clarify the following:
1. There's DOCUMENT_SELECTIONFILTER and DOCUMENTFILTER_ flags, which is used for turning off, say viewport polygons, and how is it done? Below is one of the variations I've tried:
BaseDocument *doc = GetActiveDocument();
BaseContainer bc = doc->GetData(DOCUMENTSETTINGS_DOCUMENT);
LONG Filter = bc.GetLong(DOCUMENT_SELECTIONFILTER);
bc.SetLong(DISPLAYFILTER_POLYGON,...); // <--- does something go here?
doc->SetData(DOCUMENTSETTINGS_DOCUMENT,bc);
2. Second to the above, can this be done on a per-viewport basis? I've tried the GetBaseDrawCount() to try and find a window count, but it always returns the same value (which is 4 for me) which leaves me unsure on how to get a viewport on an individual basis (if possible).
Cheers,
WP