Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Obaselist Group in MaterialData .res

 Post Reply Post Reply
peterakos View Drop Down

Joined: 2015 Jul 13
Online Status: Offline
Posts: 338
Post Options Post Options   Quote peterakos Quote  Post ReplyReply Direct Link To This Post Topic: Obaselist Group in MaterialData .res
    Posted: 2017 Aug 08 at 5:50am

User Information:

Cinema 4D Version:   R18 
Platform:   Windows  ;   
Language(s):     C++  ;   



I have MaterialData and inside its res file I have used 

GROUP Obaselist {

GROUP ParamGroup1 {

GROUP ParamGroup2 {

I have some parameters and I add these parameters in ParamGroup2 via code using description->SetParameter e.t.c.

The problem is that these parameters are added in Obaselist instead of ParamGroup2.
What  is included in INCLUDE Mbase; and in GROUP Obaselist ? 

It appears that I have ID conflicts with the included res files.
I have checked obaselist.h and mbase.h files but I didn't find any conflict there.

Thank you for your time.

Edited by peterakos - 2017 Aug 08 at 6:02am
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1785
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Aug 09 at 9:40am

it's a bit difficult to judge without seeing the code you use to insert the parameter.

Here's how it works for me:

Bool GetDDescription(GeListNode* node, Description* desc, DESCFLAGS_DESC& flags)
if (!desc->LoadDescription(node->GetType()))
return false;

const DescID groupID = DescLevel(ParamGroup2, DTYPE_GROUP, 0);
const DescID cid = DescID(DescLevel(myparamid, DTYPE_STRING, 0));
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_STRING);
bc.SetString(DESC_NAME, "My String Param");
desc->SetParameter(cid, bc, groupID);  // don't forget to provide correct group ID here

return SUPER::GetDDescription(node, desc, flags);

SDK Support Engineer
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.093 seconds.