THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/02/2006 at 10:20, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.52
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I'm still at this comboBox problem.
(I want to add items to a CYCLE at runtime).
Two things I don't understand:
- with "node->GetDescription(description, ... );"
I get a description, I already have through
the "GetDDescription(node, description..."
Why is that? Can I leave out this line?
- description->GetParameterI(DescLevel(VP_DISPLAY_MODE),
NULL); only delivers a NULL pointer, but it's
defined in the .res file properly (please see below)
How do I know from description which elements
are available?
- What's the use of the node parameter in the
context of a VideoPostPlugin?
Any short answer would help me a lot!
Thanks,
Sascha
-------------
Bool MyVideoPost::GetDDescription(GeListNode* node, Description* description, LONG& flags)
{
// Do I really need this line?
if (!description->LoadDescription(ID_MYVIDEOPOST)) return FALSE;
if (flags & DESCFLAGS_DESC_RECURSIONLOCK) return FALSE;
Bool bRes = node->GetDescription(description, DESCFLAGS_DESC_RECURSIONLOCK);
if (!bRes) return FALSE;
flags |= DESCFLAGS_DESC_LOADED;
comboBox = description->GetParameterI(DescLevel(VP_DISPLAY_MODE), NULL);
}
---------------
CONTAINER VPmypost
{
NAME VPmypost;
INCLUDE VPbase;
GROUP ID_VIDEOPOSTPROPERTIES
{
LONG VP_DISPLAY_MODE { CYCLE { } }
}
}