THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/11/2011 at 17:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) :
---------
hi,
I'm realy confused because i do not find any solution for my Problem. First of all I'm using C# wrapping it with mono + swig to c++.
anyways So That's what i got
DescID cid = new DescID(new DescLevel(SCELETTEOBJECT_TYPE, C4dApi.DTYPE_LONG, 0));
BaseContainer bcArme = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG);
bcArme.SetString(C4dApi.DESC_NAME, "Arme");
bcArme.SetLong(C4dApi.DESC_DEFAULT, 2);
if (!descparams.Desc.SetParameter(cid, bcArme, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
return true;BaseContainer bcArme2 = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_LONG);
bcArme2.SetString(C4dApi.DESC_NAME, "Finger");
bcArme2.SetLong(C4dApi.DESC_DEFAULT, 5);
//bcAuswahl.SetString(C4dApi.DESC_DEFAULT, "st2");
if (!descparams.Desc.SetParameter(cid, bcArme2, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
return true;BaseContainer bcSEP = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_SEPARATOR);
bcSEP.SetLong(C4dApi.DESC_SEPARATORLINE,C4dApi.DTYPE_SEPARATOR);
if (!descparams.Desc.SetParameter(cid, bcSEP, new DescID(new DescLevel(C4dApi.ID_OBJECTPROPERTIES))))
return true;cid = new DescID(new DescLevel(CIRCLEOBJECT_CHECKME, C4dApi.DTYPE_BOOL, 0));
BaseContainer bcCheck = C4dApi.GetCustomDataTypeDefault(C4dApi.DTYPE_BOOL);
bcCheck.SetString(C4dApi.DESC_NAME, "Check");
bcCheck.SetBool(C4dApi.DESC_DEFAULT, true);
// Create the boolean check box under the previously created sub group (CIRCLEOBJECT_SUBGROUP)
if (!descparams.Desc.SetParameter(cid, bcCheck, new DescID(new DescLevel(CIRCLEOBJECT_SUBGROUP))))
return true;
I got the following Problems:
- DESC_DEFAULT has no effect at all e.g. the checkbox, I set it as Defaul true if i open the plugin it's default
- I do not get the Separator line
- I Only get the last element @ ID_OBJECTPROPERTIES
- No clue how to ad a selectbox (Like in the Editor if you Post you can select an Font such a Box I'm trying to accomplish)
any Ideas?