THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2010 at 08:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) : C++ ;
---------
I'm being particularly dense here, this is such a simple question. How do you get the document settings for a document? Here's what I'm doing in this code snippet, where 'doc' is a valid pointer to the current document:
BaseContainer bc;
// get the document's base container
bc = doc->GetData(DOCUMENTSETTINGS_GENERAL);
// get the linear workflow setting
if(bc.GetBool(DOCUMENT_LINEARWORKFLOW))
// ... rest of code
Then the Bool I want always returns FALSE, even when the setting is clearly on. If I use doc->GetSettingsInstance(DOCUMENTSETTINGS_GENERAL) instead, it always returns a NULL pointer.
There's something wrong with what I'm doing, but what? All I want to do is get the value of the linear workflow switch in the document settings.