THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/08/2003 at 09:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
still wrestling with descriptions ... But this here is most probably the last problem.
I'm adding parameters to a description via something like:
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_REAL);
bc.SetBool(DESC_ANIMATE, DESC_ANIMATE_ON); // works!
bc.SetString(DESC_SHORT_NAME, "foobar"); // works!
bc.SetBool(DESC_EDITABLE, FALSE); // ????????
bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_REALSLIDER); // works!
isOK = description->SetParameter(DescLevel(20000, DTYPE_REAL, 0), bc, DescLevel(ID_MY_GROUP));
I hoped that setting DESC_EDITABLE to FALSE switches the parameter to readonly, but it can still be edited.
Any ideas?
Thanks in advance,
jl