Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Add resource element like PoseMixer does?

    SDK Help
    0
    4
    323
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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 want

          edit: sorry, didn't read your second post

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post