Custom Node, LinkBoxGUI

  • On 14/04/2014 at 07:18, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   14 
    Platform:   Windows  ;   
    Language(s) :     C++  ;


    I am testing My Own Licence Server Plugin.

    It has Group Node, Client Node, Serial Node, each TreeView.

    I can't figure out how to set Custom BaseList2D node to LinkBox Gui when Node is made by AllocListNode(). When I Set node to LinkBox, it's name is empty.

    Following image show LinkGUI's Data(Custom Node2) in there, But LinkBox's name is empty.
    And Pop-up list(Clear) disabled.

    1. Drag to LinkBox.

    2. And LinkBox has link's description, but name is gone.

    So, I had tests some situation.

    1. Object Cube in Document is work fine. (Getting Ocube by GetActiveObject())
    2. Object Cube not in Document is not works. (Ocube Made by BaseList::Alloc())
    3. My Custom Node is same that Object Cube not in Document.

    ...Must be In Document?

    4. But, Licence Server's Serial Module works fine when 
    I Drag it to My Custom Node's LinkBox GUI.

    ... C4D's Licence Server R13's Serial Module is not BaseObject. So, it is not in Document.

    What is my missing point?

    I made tiny example for you. It is not deal with Two Custom Node, But maybe It's phase same.


  • On 17/04/2014 at 14:51, xxxxxxxx wrote:

    Your conclusion is correct, a node must be in the Document so that it can be used in a LinkBox GUI.
    Take a look at NodeData::GetBranchInfo(). This is the place where you can expose your nodes to
    the Document. It must be implemented in a node that is already in the document (a SceneHook is
    used for this situation usually).


Log in to reply