<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can you tell if an object is an instance? in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13359208#M52795</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5613201"&gt;@ayushbakshi98&lt;/a&gt;&amp;nbsp;Well, that solves it. Nice work, here's the code to test if the selected object is an instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;string $instanceTrue = objectDetailsInstance();

if ($instanceTrue == "Yes")
{
	print "This is an instance\n";
}
else
{
	print "This is not an instance\n";
}&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 07 Mar 2025 18:37:45 GMT</pubDate>
    <dc:creator>malcolm_341</dc:creator>
    <dc:date>2025-03-07T18:37:45Z</dc:date>
    <item>
      <title>How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7227599#M52784</link>
      <description>&lt;P&gt;Pretty much what the title asks. I need to be able to distinguish an original object from an instanced one. No, I don't think layers it the solution here, as I would rather check the object itself as the source-of-truth.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 05:05:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7227599#M52784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T05:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229166#M52785</link>
      <description>&lt;P&gt;I'd be interested in opinions on this matter but I'm not sure there is such thing as an 'original' or 'instance'. &amp;nbsp;They are just transform nodes with the same shape node attached. &amp;nbsp;As far as I can tell, only the name would give an indication of which was created first. &amp;nbsp;In fact, if you convert instances back into objects, it's possible for one of the non-original instance objects to get the construction history.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2017-07-14 18_44_40-Node Editor.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/378009i97AF916AEAA0BE39/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-07-14 18_44_40-Node Editor.png" alt="2017-07-14 18_44_40-Node Editor.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:45:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229166#M52785</guid>
      <dc:creator>djonesuk</dc:creator>
      <dc:date>2017-07-14T17:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229344#M52786</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no difference between an instance and the original object, they have different transforms but they point to the same mesh/shape.&lt;/P&gt;
&lt;P&gt;Therefore if you have 2 objects ( one is the original and one the copied instance) and you only want to keep 1 object it doesn't matter which one you delete. Also if you want to make changes to an object it doesn't matter which instance you choose.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:10:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229344#M52786</guid>
      <dc:creator>mspeer</dc:creator>
      <dc:date>2017-07-14T19:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229778#M52787</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/134201"&gt;@mspeer&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if you want to make changes to an object it doesn't matter which instance you choose.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi mspeer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply! I think it may help if I clarify the question. How can I tell if an object is an instance, as opposed to a duplicate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I add&amp;nbsp;a cube to the scene and make a duplicate of it. I then also make another special duplicate (instance) of it. How do I tell by looking at the two new cubes' attributes, whether one is an instance or a duplicate? Especially in a scene with hundreds of objects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the outliner hierarchy, the original cube, the duplicate and the instance all look identical.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 00:25:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229778#M52787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-15T00:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229966#M52788</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, there is no difference except that instances share the same mesh, so just compare the name of the transform node with the name of the shape node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select the Shape (not the transform) and all instances will highlight in Viewport, or if all Instances share the same Material you could select by Material.&lt;/P&gt;
&lt;P&gt;You may also check if a Shape is assigned to multiple transforms with MEL.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 07:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7229966#M52788</guid>
      <dc:creator>mspeer</dc:creator>
      <dc:date>2017-07-15T07:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7230019#M52789</link>
      <description>&lt;P&gt;You would have to use a MEL script to, for example, set the outliner colour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$selection = `ls -sl`;
for ($object in $selection) {
    string $children[] = `listRelatives -fullPath -children $object`;
    string $parents[] = `listRelatives -fullPath -allParents $children[0]`;
    float $outlinerColorR = 0, $outlinerColorG = 1, $outlinerColorB = 0;
    
    if (size($parents) &amp;gt; 1) {
        //print($object + " is instance!\n");
        setAttr ($object + ".useOutlinerColor") 1;
        setAttr ($object + ".outlinerColor") $outlinerColorR $outlinerColorG $outlinerColorB;
    }
}&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Jul 2017 08:46:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/7230019#M52789</guid>
      <dc:creator>djonesuk</dc:creator>
      <dc:date>2017-07-15T08:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/10440705#M52790</link>
      <description>&lt;P&gt;very handy script&lt;SPAN class="UserName lia-user-name lia-user-rank-Advocate lia-component-message-view-widget-author-username"&gt; djonesuk &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 13:31:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/10440705#M52790</guid>
      <dc:creator>absoluteKelvin</dc:creator>
      <dc:date>2021-07-03T13:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13354534#M52791</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4879267"&gt;@djonesuk&lt;/a&gt;&amp;nbsp;This is a great script, thanks for sharing.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 18:48:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13354534#M52791</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2025-03-05T18:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13358180#M52792</link>
      <description>&lt;P&gt;Hey, You can have this info displayed in the HUD of viewport by doing this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Menu Bar → Display → Heads Up Display → Object Details &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 07:57:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13358180#M52792</guid>
      <dc:creator>ayushbakshi98</dc:creator>
      <dc:date>2025-03-07T07:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13359145#M52793</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5613201"&gt;@ayushbakshi98&lt;/a&gt;&amp;nbsp;Any idea what the Maya internal code is that queries if it's an instance or not for the HUD, or which Mel file I could find that info in?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 17:55:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13359145#M52793</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2025-03-07T17:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13359173#M52794</link>
      <description>&lt;P&gt;Yes,&amp;nbsp; A little bit.&lt;BR /&gt;Here's the mel command that, I think, tells the HUD if the selection is instance or not&lt;/P&gt;&lt;P&gt;objectDetailsInstance();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some other python commands that might help to deal with instances:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/cloudhelp/2024/ENU/Maya-Tech-Docs/CommandsPython/filterInstances.html" target="_blank"&gt;https://help.autodesk.com/cloudhelp/2024/ENU/Maya-Tech-Docs/CommandsPython/filterInstances.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/cloudhelp/2024/ENU/Maya-Tech-Docs/CommandsPython/instanceable.html" target="_blank"&gt;https://help.autodesk.com/cloudhelp/2024/ENU/Maya-Tech-Docs/CommandsPython/instanceable.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 18:14:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13359173#M52794</guid>
      <dc:creator>ayushbakshi98</dc:creator>
      <dc:date>2025-03-07T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13359208#M52795</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5613201"&gt;@ayushbakshi98&lt;/a&gt;&amp;nbsp;Well, that solves it. Nice work, here's the code to test if the selected object is an instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;string $instanceTrue = objectDetailsInstance();

if ($instanceTrue == "Yes")
{
	print "This is an instance\n";
}
else
{
	print "This is not an instance\n";
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Mar 2025 18:37:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13359208#M52795</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2025-03-07T18:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can you tell if an object is an instance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13399205#M52796</link>
      <description>&lt;P&gt;This post seems old, but I think many people have this need. There are many instances of different objects in my scene. I need to get all the instanced objects by selecting one of them. My idea is to use the same shape nodes between instanced objects to reversely find their transformation nodes.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 07:55:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-can-you-tell-if-an-object-is-an-instance/m-p/13399205#M52796</guid>
      <dc:creator>MaYa_people</dc:creator>
      <dc:date>2025-03-31T07:55:25Z</dc:date>
    </item>
  </channel>
</rss>

