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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    xpresso

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 346 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 22/12/2005 at 16:42, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   c4d95sdk 
      Platform:   Windows  ;   
      Language(s) :      XPRESSO  ;

      ---------
      hi,

      how does one use the 'node->RemoveUnusedPorts()' function.
      i am able to issue node->RemoveConnections().
      so now all wires have gone,
      but a next issued RemoveUnusedPorts() does nothing.

      thanks,

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 02/01/2006 at 14:06, xxxxxxxx wrote:

        It seems to work here. Did you remember EventAdd()? Note that it only removes unused ports that *can* be removed, i.e. not mandatory ports. So for example on a Condition node it will remove all Input ports except one.
        Here's my code:

            
            
            XPressoTag* t = static_cast<XPressoTag*>(doc->GetFirstObject()->GetFirstTag());  
            GvNodeMaster* nm = t->GetNodeMaster();  
            GvNode* r = nm->GetRoot();  
            GvNode* n = r->GetDown();  
            n->RemoveConnections();  
            n->RemoveUnusedPorts();  
            EventAdd();
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 04/01/2006 at 10:28, xxxxxxxx wrote:

          Did indeed forget the EventAdd but still can't
          get it going.
          Added the ports with AddPort, after AddPortIsOK.
          In the res file group I add more ports then i think i ever need, via LONG PORT_00 {OUTPORT; STATICPORT;}
          This is not very elegant, i can't find much about it.
          Can it be the trouble ?
          Should I use something dynamic?

          by the way, found that RemovePort(port,false) does work.

          regards,

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