<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GV Node AddPort fail]]></title><description><![CDATA[<p dir="auto">This is my code,but it is not work</p>
<pre><code>def main():
    xp = op.GetTag(c4d.Texpresso)
    m = xp.GetNodeMaster()
    root = m.GetRoot()
    one = m.CreateNode(root,c4d.ID_OPERATOR_OBJECT)
    one[c4d.GV_OBJECT_OBJECT_ID] = op
    one.AddPort(c4d.GV_PORT_OUTPUT,c4d.GV_OBJECT_OPERATOR_OBJECT_OUT,message=True)
    c4d.EventAdd()
</code></pre>
<p dir="auto">image<br />
<img src="https://developers.maxon.net/forum/assets/uploads/files/1552809821192-test.png" alt="test.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Thanks for any help!</strong></p>
]]></description><link>http://developers.maxon.net/forum/topic/11423/gv-node-addport-fail</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 20:12:40 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/11423.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Mar 2019 08:05:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GV Node AddPort fail on Fri, 13 Sep 2019 15:36:48 GMT]]></title><description><![CDATA[<p dir="auto">This issue is now fixed in R21.</p>
<p dir="auto">Cheers,<br />
Maxime.</p>
]]></description><link>http://developers.maxon.net/forum/post/59319</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59319</guid><dc:creator><![CDATA[m_adam]]></dc:creator><pubDate>Fri, 13 Sep 2019 15:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to GV Node AddPort fail on Mon, 18 Mar 2019 10:27:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/m_adam">@<bdi>m_adam</bdi></a> Thanks，hope to be resolved in future versions!</p>
]]></description><link>http://developers.maxon.net/forum/post/57701</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57701</guid><dc:creator><![CDATA[chuanzhen]]></dc:creator><pubDate>Mon, 18 Mar 2019 10:27:16 GMT</pubDate></item><item><title><![CDATA[Reply to GV Node AddPort fail on Mon, 18 Mar 2019 09:55:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi this is a Python bug already reported see <a href="https://developers.maxon.net/forum/topic/11386/how-to-control-the-on-off-of-a-node-in-expresso/7" target="_blank" rel="noopener noreferrer nofollow ugc">https://developers.maxon.net/forum/topic/11386/how-to-control-the-on-off-of-a-node-in-expresso/7</a></p>
<p dir="auto">Cheers,<br />
Maxime.</p>
]]></description><link>http://developers.maxon.net/forum/post/57699</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57699</guid><dc:creator><![CDATA[m_adam]]></dc:creator><pubDate>Mon, 18 Mar 2019 09:55:54 GMT</pubDate></item><item><title><![CDATA[Reply to GV Node AddPort fail on Sun, 17 Mar 2019 14:01:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello<br />
Same here for python. Even check by AddPortIsOK(), says True, not adding</p>
<p dir="auto">I also test c++ code, it adds to object operator(like topic master wants) but does not to nodemaster and no connect</p>
<pre><code>{
    BaseDocument *doc = GetActiveDocument();

    BaseObject *obj = (BaseObject *) doc-&gt;GetActiveObject();
    if(!obj) return FALSE;

    XPressoTag *xTag = (XPressoTag*)obj-&gt;GetTag(Texpresso, 0);
    if(!xTag) return FALSE;

    GvNodeMaster *nm = xTag-&gt;GetNodeMaster(); 

    GvNode *n1 = nm-&gt;GetRoot();
    GvPort *p1;
    if (n1-&gt;AddPortIsOK(GV_PORT_OUTPUT,40000002))
    {
	    p1 = n1-&gt;AddPort(GV_PORT_OUTPUT, 40000002, GV_PORT_FLAG_IS_VISIBLE, TRUE);
	    print("True"); 
    }
    else
    {
	    print("False"); 
    }
      
    GvPort *p3 = n1-&gt;AddPort(GV_PORT_OUTPUT, 536870935, GV_PORT_FLAG_IS_VISIBLE, TRUE);
    
    GvNode *n2 = nm-&gt;CreateNode(nm-&gt;GetRoot(), ID_OPERATOR_OBJECT, NULL, 0, 0);
    GvPort *p2 = n2-&gt;AddPort(GV_PORT_OUTPUT, 40000002, GV_PORT_FLAG_IS_VISIBLE, TRUE);

    if (p1 &amp;&amp; p2)
    {
        GvNode *n1u = NULL;
        GvNode *n2u = NULL;
        GvPort *p1u = NULL;
        GvPort *p2u = NULL;
        if (nm-&gt;IsConnectionValid(n1, p1, n2, p2, n1u, p1u, n2u, p2u))
        {
          n2-&gt;AddConnection(n1, p1, n2, p2);
        }
     }
    n1-&gt;Message(MSG_UPDATE);
    n2-&gt;Message(MSG_UPDATE);
    nm-&gt;Message(MSG_UPDATE);

    EventAdd();
}
</code></pre>
]]></description><link>http://developers.maxon.net/forum/post/57692</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57692</guid><dc:creator><![CDATA[iluxa7k]]></dc:creator><pubDate>Sun, 17 Mar 2019 14:01:32 GMT</pubDate></item></channel></rss>