Insert objects in InExludeData

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 05/07/2004 at 06:53, xxxxxxxx wrote:

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

---------
Hello,
I create a IN_EXLUDE data in my res-file. And now, I like to insert objects inside the code, not per drag&drop.
I read the parameter with
InExcludeData* inexlist = ( InExcludeData* ) bC->GetCustomDataType( L_____INEXCLUDE_REFERENCE, CUSTOMDATATYPE_INEXCLUDE_LIST );
The problem now is, that I get always a NULL pointer, if no object drop in. If any (e.g Cube) Object drop in, I get a existing pointer. Also, if the object delete, the pointer still exist.
But I like to insert my objects in the code ( inexlist->InsertObject() ).
How can I do that?
Markus

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/07/2004 at 00:54, xxxxxxxx wrote:

Confirmed. A fix would be to add this to your Init() function:

    
    
    data->SetData(L_____INEXCLUDE_REFERENCE, GeData(CUSTOMDATATYPE_INEXCLUDE_LIST, DEFAULTVALUE));