<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=VisionaireObject_Command%3A_getParent</id>
		<title>VisionaireObject Command: getParent - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=VisionaireObject_Command%3A_getParent"/>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=VisionaireObject_Command:_getParent&amp;action=history"/>
		<updated>2026-05-27T22:16:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=VisionaireObject_Command:_getParent&amp;diff=12225&amp;oldid=prev</id>
		<title>EK: Created page with &quot;Returns the parent object of the VisionaireObject.   == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; getParent() &lt;/syntaxhighlight&gt;   == Parameters ==  none   == Return values ==  {...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=VisionaireObject_Command:_getParent&amp;diff=12225&amp;oldid=prev"/>
				<updated>2023-08-31T18:10:04Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Returns the parent object of the VisionaireObject.   == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; getParent() &amp;lt;/syntaxhighlight&amp;gt;   == Parameters ==  none   == Return values ==  {...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns the parent object of the VisionaireObject.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
getParent()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
none&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Return values ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:15%&amp;quot; | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| TVisObj&lt;br /&gt;
| The parent object of the VisionaireObject.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
'''Example 1:''' Check if an animation belongs to a character or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkAnimOwner(anim)&lt;br /&gt;
  anim = getObject(&amp;quot;Animations[&amp;quot; .. anim .. &amp;quot;]&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  if anim:getParent():getId().tableId == eOutfits then&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim:getId().id .. &amp;quot; is a character animation.&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim:getId().id .. &amp;quot; is not a character animation.&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
checkAnimOwner(&amp;quot;welding_anim&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- The shorthand notation offers a more convenient way to achieve the same&lt;br /&gt;
function checkAnimOwner(anim)&lt;br /&gt;
  anim = Animations[anim]&lt;br /&gt;
&lt;br /&gt;
  if anim.parent.tableId == eOutfits then&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim.id .. &amp;quot; is a character animation&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim.id .. &amp;quot; is not a character animation&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
checkAnimOwner(&amp;quot;welding_anim&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{toc}}&lt;/div&gt;</summary>
		<author><name>EK</name></author>	</entry>

	</feed>