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

    Connect to node ports?

    SDK Help
    0
    5
    769
    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 13/01/2003 at 07:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;  XPRESSO  ;

      ---------
      Hi,
      how to connect two node ports? I tried it like this:
      GvPort* bornshape = born->AddConnection(born,born->GetOutPort(0),shape,shape->GetInPort(0)); if(!bornshape) return FALSE;
      and it seems to work but they aren´t connected anyway :
      Do I have to do anything with the returned GvPort?
      Thanks
      P.S.: When there is a port output of (the description) type TP_Particle, how can I store it in a variable? What datatype is that?

      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/03/2006 at 17:10, xxxxxxxx wrote:

        Did you every figure this out? I am having an identical issue. Know nothing of how this is all supposed to work and be configured and each progressive inch is a Battles of the Nodes.

        In my case, there are three nodes - two Object nodes with slider ports and an intervening RangeMapper node.

        Thanks,

        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 31/03/2006 at 05:39, xxxxxxxx wrote:

          I have confirmed that the naive approach of just doing

              
              
              GvNode* n1u = NULL;  
              GvNode* n2u = NULL;  
              GvPort* p1u = NULL;  
              GvPort* p2u = NULL;  
              if (m->IsConnectionValid(n1, p1, n2, p2, n1u, p1u, n2u, p2u))  
              {  
               n1->AddConnection(n1u, p1u, n2u, p2u);  
              }
          

          doesn't seem to work for me either with two object nodes and manually added ports. I'm investigating if there's a proper way to add connections.

          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/2008 at 06:26, xxxxxxxx wrote:

            Hi!

            1. Currently I have the same problem. I tried out to connect two ports, but they are not connected. What can I do?

            Thanks for your help.

            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/2008 at 07:26, xxxxxxxx wrote:

              It seems to work.

              > \> GvPort\* AddConnection(GvNode\* source_node, GvPort\* source_port, GvNode\* dest_node, GvPort\* dest_port); \>

              If source_port is the outport and dest_port is the inport, it does not work. If source_port is the outport, it works.

              Bye.

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