THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/10/2004 at 03:42, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
I have my own object and want to edit the member variables of my object through a DescriptionCustomGui:
Here my source (i'm doing all steps as described in the docs) :
In Oworld.res
CONTAINER Oworld
{
NAME Oworld;
GROUP ID_TEMPOBJECTPROPERTIES
{
STRING TEMPOBJECT_ID { }
}
}
In Oworld.h
#ifndef _Oworld_H_
#define _Oworld_H_
enum
{
TEMPOBJECT_ID = 3000,
ID_TEMPOBJECTPROPERTIES= 3001,
Oworld = 3002
};
#endif
In Oworld.str.
STRINGTABLE Oworld
{
Oworld "World";
}
In my mainapp:
...
#include "Oworld.h"
...
//i want to assign my "CONTAINER" Oworld to the CUSTOMGUI_DESCRIPTION
void* desc = FindCustomGui_(IDC_CUSTOM2, CUSTOMGUI_DESCRIPTION);
if(desc != NULL)
{
//sample with C4D-Objects
PluginObject* pObj1 = PluginObject::Alloc(Olight); //it works with Olight, Oplane
//my object
PluginObject* pObj2 = PluginObject::Alloc(Oworld); //doesn't work, pObj2 is NULL
//later i will do:
if(pObj2 != NULL)
{
((DescriptionCustomGui* )desc)->SetObject(pObj);
}
}
...
Where is my mistake.
Thanks for all replys.
Torsten