problems adding custom description
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/07/2004 at 05:56, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.500
Platform: Windows ;
Language(s) : C++ ;---------
Hi!
I want to add a custom description to an object but nothing appears. What did i do wrong?
Code snippet in my PluginObject:
Bool ParamObject::GetDDescription(GeListNode* node, Description* description, LONG& flags)
{
DescLevel dl = DescLevel(0, DTYPE_REAL, 0);
DescID did = DescID(dl);
BaseContainer bc;
bc.SetReal(DESC_MIN, -1.0);
bc.SetReal(DESC_MAX, 100.0);
bc.SetString(DESC_NAME, "TestParameter");
bc.SetString(DESC_SHORT_NAME, "Param1");
bc.SetBool(DESC_ASKOBJECT, false);
bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_REAL);
if (!description->SetParameter(did, bc, DESCID_ROOT))
GePrint("Parameter doesnt work!");
flags |= DESCFLAGS_DESC_LOADED;
return (ObjectData::GetDDescription(node, description, flags));
}
thx, lawn -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/07/2004 at 08:02, xxxxxxxx wrote:
Can't anyboy pls help me? It's very important...
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/07/2004 at 21:26, xxxxxxxx wrote:
I can't see anything wrong, except that the ID seems to be 0. Try with a more normal ID, like 10000. Also, you probably should have a LoadDescription() somewhere in there. See the GetDDescription() entry in the docs. There are also a few examples of custom descriptions in the SDK project that you might find useful.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/07/2004 at 07:33, xxxxxxxx wrote:
Unfortunately there is no example program in the sdk of 8.5 ...
I do not want to use LoadDescription because it shall be generated in - time (and destroyed as well...)
Does the Descid have to be a bigger number? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/07/2004 at 20:43, xxxxxxxx wrote:
I was referring to for example MorphMixer.cpp. Isn't that dynamic enough?
I think LoadDescription() is necessary anyway, just to load the default categories for the object type. (It might be possible to add them manually, I haven't looked.)
I don't know what the exact limits are for DescID, just that all the examples seem to start their IDs at 1000.