<?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[Check User Data Link Field]]></title><description><![CDATA[<p dir="auto">Hi, is there a way to use Python to check if there is a link in a User Data field or if it is empty? Thanks.</p>
]]></description><link>http://developers.maxon.net/forum/topic/12505/check-user-data-link-field</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 00:57:52 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/12505.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Apr 2020 17:04:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Check User Data Link Field on Thu, 16 Apr 2020 18:31:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/swinn">@<bdi>Swinn</bdi></a> is None did the trick. Thanks. <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://developers.maxon.net/forum/post/62519</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/62519</guid><dc:creator><![CDATA[Swinn]]></dc:creator><pubDate>Thu, 16 Apr 2020 18:31:52 GMT</pubDate></item><item><title><![CDATA[Reply to Check User Data Link Field on Thu, 16 Apr 2020 18:04:01 GMT]]></title><description><![CDATA[<p dir="auto">What do you mean with "<em>use Python</em>"? Are you writing a script, or a plugin, or something else?</p>
<p dir="auto">You can simply access the user data parameter and see if it is <code>None</code> or not:</p>
<pre><code>link = op[c4d.ID_USERDATA,1]
if link is None:
    print("no link")
else:
    print("some object linked")
</code></pre>
<p dir="auto">Also: please post questions on the C4D API in <a href="https://developers.maxon.net/forum/category2/cinema-4d-development" target="_blank" rel="noopener noreferrer nofollow ugc">CINEMA 4D DEVELOPMENT</a>.</p>
]]></description><link>http://developers.maxon.net/forum/post/62518</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/62518</guid><dc:creator><![CDATA[PluginStudent]]></dc:creator><pubDate>Thu, 16 Apr 2020 18:04:01 GMT</pubDate></item></channel></rss>