# How do I tell if any given object is an instance?

**URL:** https://forum.highend3d.com/t/how-do-i-tell-if-any-given-object-is-an-instance/6247
**Category:** Maya
**Tags:** mel
**Created:** [April 25, 2002, 2:08pm UTC](https://forum.highend3d.com/t/how-do-i-tell-if-any-given-object-is-an-instance/6247 "2002-04-25T14:08:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [April 25, 2002, 2:08pm UTC](https://forum.highend3d.com/t/how-do-i-tell-if-any-given-object-is-an-instance/6247/1 "2002-04-25T14:08:59Z")

</div>

Is there a simple command that will tell me if the specified object is an INSTANCE?

:nathaN

---

<div class="post-metadata">

### Author: ![glocker](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@glocker](https://forum.highend3d.com/u/glocker)
#### Post date: [April 25, 2002, 3:45pm UTC](https://forum.highend3d.com/t/how-do-i-tell-if-any-given-object-is-an-instance/6247/2 "2002-04-25T15:45:21Z")

</div>

given node $myNode....

string $paths[] = `ls -allPaths $myNode`;  
if (size($paths) \> 1)  
{  
 print($myNode + " is instancedn");  
}

Depending on what you actually want to do with the instance information, there may be better ways to check.

g-

---

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [April 25, 2002, 5:28pm UTC](https://forum.highend3d.com/t/how-do-i-tell-if-any-given-object-is-an-instance/6247/3 "2002-04-25T17:28:41Z")

</div>

yes, that does the job nicely, thank you once again.

:nathaN
