Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Custom Node, LinkBoxGUI

    SDK Help
    0
    2
    280
    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

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

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

      ---------
      Hi,

      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.

      https://googledrive.com/host/0B1SFMskowpq-TXFaQlpqUlcxejQ/upload.zip

      -elasticmind

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

        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).

        Best,
        -Niklas

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