Add resource element like PoseMixer does?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2005 at 17:30, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.507
Platform: Windows ;
Language(s) : C++ ;---------
Hi,I'm looking for a solution to extend a resource just like pose mixer does. I want to make a button "Add..." that creates a new entry with a link box and a slider. All I found in the SDK belongs to dialogs but I want to use the attribute manager.
I took a look to the pose mixer res. The part, where it will show the link boxes is defined there as an empty group. How does pose mixer fill it?
Klaus
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/11/2005 at 14:51, xxxxxxxx wrote:
ok, ok. Thank you. Maybe it's true, that one learns better, by finding the solution oneself. I found the way doing it using GetDDescription(...) earlier in the momixer sdk example, but it seemed, that this method will only called once during initiation process. Since my function that counts the number of resource entries to be generated stores the value inside the base container, GetDDescription is called each time and now it works like I want it to.
But there is one problem left. I found a thread from cactus dan describing the same problem, but the thread ends without any solution.
I want my baselink boxes to accept splines only but I don't know how to setup the DESC_ACCEPT parameter:
00 bc2 = GetCustomDataTypeDefault(DTYPE_BASELISTLINK); 01 bc2.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_LINKBOX); 02 dbc = bc2.GetContainerInstance(DESC_ACCEPT); 03 if (dbc) dbc->SetString(5123, "Obone"); 04 dbc = bc2.GetContainerInstance(DESC_REFUSE); 05 if (dbc) dbc->SetString(5155, "Obase"); 06 if(!description->SetParameter(DescLevel(id, DTYPE_BASELISTLINK, 0), bc2, DescLevel(X_ASSIGN))) return FALSE;
02 returns a valid basecontainer, but 03 has no effect. 04 returns NULL, so that 05 won't be executed.
What am I doing wrong? The linkbox still accepts all objects.
Klaus
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/12/2005 at 07:59, xxxxxxxx wrote:
doesn't the asynctest.cpp from the SDK help you?
don't know if this is the thing you are searching for, but from the first post, i think that's what you wantedit: sorry, didn't read your second post
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/12/2005 at 09:35, xxxxxxxx wrote:
Ok. I made a workaround using the MSG_DESCRIPTION_CHECKDRAGANDDROP message to accept bone objects only.
Now, the next problem occured:
DESC_DEFAULT settings have no effect. I took a look at the lookatcamera sdk example, that also sets default values in this way. Also with no effect!
What's going wrong? Is it a bug?