THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/08/2008 at 05:18, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hello all,
I try to fill a combobox cycle in myObjectPlugin, i read a lot of tread on this issue but i can't find the correct way to add item in DESC_CYCLE container.
here my Code:
_
_Bool Takemanager::GetDDescription(GeListNode *node, Description *description,LONG &flags)
{
if (!description->LoadDescription(1022860)) return FALSE;
BaseObject * op = ((BaseObject * )node);
BaseContainer * data = op->GetDataInstance();
BaseDocument * doc = GetActiveDocument();
BaseContainer group = GetCustomDataTypeDefault(DTYPE_GROUP);
group.SetString(DESC_NAME, "Take Selector");
if(!description->SetParameter(DescLevel(6001, DTYPE_GROUP, 0), group, DescLevel(0))) return TRUE;
BaseContainer Ctake = GetCustomDataTypeDefault(DTYPE_LONG);
Ctake.SetString(DESC_NAME, "Current Take");
BaseContainer cycle ;
Ctake.SetContainer(DESC_CYCLE,cycle);
cycle.SetString(DESC_NAME,"test1");
if(!description->SetParameter(DescLevel(6002, DTYPE_LONG, 0), Ctake, DescLevel(6001))) return TRUE;
flags |= DESCFLAGS_DESC_LOADED;
return TRUE;
} _]
Thanks a lot
Franz_