Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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,
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();
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,