<?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[Get port id of xpresso node]]></title><description><![CDATA[<p dir="auto">Dear community!</p>
<p dir="auto">I want to create length port for spline node but I can’t find correct command for it.<br />
How to get id of port in form like this<br />
c4d.GV_PORT_OUTPUT, [c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_X]</p>
]]></description><link>http://developers.maxon.net/forum/topic/13514/get-port-id-of-xpresso-node</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 12:01:54 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/13514.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Aug 2021 07:01:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get port id of xpresso node on Wed, 06 Jul 2022 21:33:46 GMT]]></title><description><![CDATA[<p dir="auto">Was just searching for something related and came across this post and thought I would also point out my site that also displays all the data from the resource files.</p>
<p dir="auto"><a href="https://plugins4d.com/Description/Nodes" target="_blank" rel="noopener noreferrer nofollow ugc">https://plugins4d.com/Description/Nodes</a></p>
<p dir="auto">Here is the page for GVSpline: <a href="https://plugins4d.com/Description/Node?containerName=GVspline" target="_blank" rel="noopener noreferrer nofollow ugc">https://plugins4d.com/Description/Node?containerName=GVspline</a></p>
<p dir="auto">It is similar to the documentation now supplied in the official maxon docs.</p>
]]></description><link>http://developers.maxon.net/forum/post/69456</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/69456</guid><dc:creator><![CDATA[kbar]]></dc:creator><pubDate>Wed, 06 Jul 2022 21:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to Get port id of xpresso node on Thu, 26 Aug 2021 10:12:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/roman">@<bdi>ROMAN</bdi></a>,</p>
<p dir="auto">without further questions or replies, we will consider this topic as solved by Monday, the 30th and flag it accordingly.</p>
<p dir="auto">Thank you for your understanding,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/67504</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67504</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 26 Aug 2021 10:12:48 GMT</pubDate></item><item><title><![CDATA[Reply to Get port id of xpresso node on Thu, 05 Aug 2021 06:56:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/roman">@<bdi>Roman</bdi></a>,</p>
<p dir="auto">your posting is missing information about the programming and OS environment(s), as well as the user version(s) of Cinema 4D. The procedures are all described in our <a href="https://plugincafe.maxon.net/guidlines_cp#forum-tagging" target="_blank" rel="noopener noreferrer nofollow ugc">Forum Guidlelines</a> under the section <em>Forum Structure and Features: Tagging</em>.</p>
<p dir="auto">We have to enforce these rules as that information is at least partially always relevant for answering questions. E.g., in your case due to the fact that <code>GvNode.AddPort</code> behaves differently prior to R23 and that you want to use Python. Often some of that information can be decuced by us, but it makes answering question then harder, as one then has often to describe multiple scenarios, as one can never be certain. In the worst case scenario we will give the user incorrect information, simply because we assume some condition which is not true.</p>
<p dir="auto">There is however no need to be sorry, nor do you have to do it retoactively. I have allready added the tag Python and S24 to your post. But please follow these rules in future postings.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/67363</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67363</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 05 Aug 2021 06:56:24 GMT</pubDate></item><item><title><![CDATA[Reply to Get port id of xpresso node on Thu, 05 Aug 2021 05:43:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a> Thank you a lot for your help! I'm really sorry for  organization of my post. Could you point out on my mistakes in tagging?</p>
]]></description><link>http://developers.maxon.net/forum/post/67362</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67362</guid><dc:creator><![CDATA[ROMAN]]></dc:creator><pubDate>Thu, 05 Aug 2021 05:43:25 GMT</pubDate></item><item><title><![CDATA[Reply to Get port id of xpresso node on Wed, 04 Aug 2021 08:35:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/roman">@<bdi>ROMAN</bdi></a>,</p>
<p dir="auto">thank you for reaching out to us. Please remember to add the required information to your posting as stated in the <a href="https://plugincafe.maxon.net/guidlines_cp" target="_blank" rel="noopener noreferrer nofollow ugc">Forum Guidelines: Tagging</a>. It is getting a bit out of hand in the last time that people skip that information. If we do not need it, we sometimes do not bring up the issue, but it is always formally required.</p>
<p dir="auto">Symbol IDs can be found either in our SDK Documentation, .e.g., <a href="https://developers.maxon.net/docs/py/2023_2/classic_resource/gv_operator/gvspline.html" target="_blank" rel="noopener noreferrer nofollow ugc">Spline Operator</a>, or by using a <em>grep</em>-like tool to search the description resources of Cinema 4D (I personally really like <a href="https://www.mythicsoft.com/agentransack/" target="_blank" rel="noopener noreferrer nofollow ugc">Agent Ransanck</a>). This will then uncover that the information is contained in the file <code>gvspline.res</code> which has the content:</p>
<pre><code>CONTAINER GVspline
{
    NAME GVspline;
    INCLUDE GVbase;

    GROUP ID_GVPROPERTIES
    {
        LONG GV_SPLINE_MODE { CYCLE { GV_SPLINE_OPERATOR_MODE_GLOBAL; GV_SPLINE_OPERATOR_MODE_LOCAL; } }
        BOOL GV_SPLINE_USE_NATURAL { }
        BOOL GV_SPLINE_ALL_SEGMENTS { }
    }

    GROUP ID_GVPORTS
    {
        GVGENERALOBJECT GV_SPLINE_INPUT_OBJECT { INPORT; STATICPORT; CREATEPORT; }
        REAL GV_SPLINE_INPUT_POINT { INPORT; STATICPORT; CREATEPORT; UNIT PERCENT; MIN 0; MAX 100; }
        LONG GV_SPLINE_INPUT_SEGMENT { INPORT; MIN 0; }

        VECTOR GV_SPLINE_OUTPUT_POSITION { OUTPORT; CREATEPORT; }
        VECTOR GV_SPLINE_OUTPUT_TANGENT { OUTPORT; }
        REAL GV_SPLINE_OUTPUT_LENGTH { OUTPORT; }
        BOOL GV_SPLINE_OUTPUT_IS_CLOSED { OUTPORT; }
        LONG GV_SPLINE_OUTPUT_SEGMENTS { OUTPORT; }
    }
}
</code></pre>
<p dir="auto">I personally prefer the latter, but don't tell <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/m_adam">@<bdi>m_adam</bdi></a> he worked hard on the symbol parsing for the documentation ;). Adding a spline length output port can be done therefore like this:</p>
<pre><code>port = Spline.AddPort(c4d.GV_PORT_OUTPUT, c4d.GV_SPLINE_OUTPUT_LENGTH, c4d.GV_PORT_FLAG_IS_VISIBLE, True)
</code></pre>
<p dir="auto"><img src="https://developers.maxon.net/forum/assets/uploads/files/1628065232503-b25d8988-627d-4974-bc11-999a1de148d5-image.png" alt="b25d8988-627d-4974-bc11-999a1de148d5-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">There are also other ways to identify graph view ports, I went over them <a href="https://developers.maxon.net/forum/topic/13097/python-find-any-id-port/3" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>, you only need to read the part <em># added by Ferdinand</em>. And finally, there was a bug in <code>GvNode.AddPort</code> which made it impossible to use (in most cases) prior to <code>R23</code> in the Python SDK. There are unfortunately no ways around that bug in versions before R23.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/67351</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67351</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Wed, 04 Aug 2021 08:35:44 GMT</pubDate></item></channel></rss>