<?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[IsAlive() Problem + Workaround]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 24/02/2011 at 14:20, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">if one wants to acess an object using Userdata an the referenceobject becomes removed, the link to the object still exists. If this is not as it ia supposed to be, see it as kind of a Bugreport. <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<p dir="auto">I had a few problems then, because the Object didn't exist in the document, but it's still in the Userdata.<br />
Even the BaseList2D.IsAlive() method did not help, it returned True always.</p>
<p dir="auto">But i could find a Workaround:</p>
<pre><code>def IsAlive(op) :   
    if not op.GetDocument() : return False   
    return True   
</code></pre>
<p dir="auto">Cheers, nux</p>
]]></description><link>http://developers.maxon.net/forum//topic/5534/5554_isalive-problem--workaround</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 19:34:30 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/5534.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2018 17:51:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IsAlive() Problem + Workaround on Wed, 09 May 2018 17:51:53 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 24/02/2011 at 18:23, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">@nux95: This is a known bug and will be fixed with the next update. To keep your plugins downwards compatible, you should add a check if op is None (which will be the case after the update).</p>
<p dir="auto">Some background information about the exception that an object is not alive anymore:<br />
If you have a reference to an object(BaseObject, BaseTag) in your plugin and the user or C4D deletes<br />
it, the reference becomes invalid and raises an exception. The reference is still alive but the established object is already freed.</p>
]]></description><link>http://developers.maxon.net/forum//post/25780</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/25780</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:51:53 GMT</pubDate></item><item><title><![CDATA[Reply to IsAlive() Problem + Workaround on Wed, 09 May 2018 17:51:53 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 24/02/2011 at 15:50, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Yeah.<br />
It's kind of a long standing issue in C4D.</p>
<p dir="auto">The most common way I see people dealing with it in regards to UserData. Is to add a null to the link field after the previously refrenced object was removed. Then removing the null.<br />
Kind of clumsy. But it works.</p>
<p dir="auto">I'd be surprised if the developers don't already know about this.</p>
<p dir="auto">-ScottA</p>
]]></description><link>http://developers.maxon.net/forum//post/25779</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/25779</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:51:53 GMT</pubDate></item></channel></rss>