# Self. component paths

**URL:** <https://forum.inductiveautomation.com/t/self-component-paths/81772>\
**Category:** Maker\
**Tags:** perspective\
**Created:** [November 10, 2023, 5:34pm UTC](https://forum.inductiveautomation.com/t/self-component-paths/81772 "2023-11-10T17:34:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Andrus](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@Guy\_Andrus](https://forum.inductiveautomation.com/u/Guy_Andrus)\
**Post date:** [November 10, 2023, 5:34pm UTC](https://forum.inductiveautomation.com/t/self-component-paths/81772/1 "2023-11-10T17:34:03Z")

</div>

I am trying to write a script action on a Perspective component. I am new to this so this may sound clueless: Which of the following are valid examples of component paths?  
self.sibling  
self.getChild("Container")  
slef.getSibling("name")  
self.child  
self.parent

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 10, 2023, 5:39pm UTC](https://forum.inductiveautomation.com/t/self-component-paths/81772/2 "2023-11-10T17:39:14Z")

</div>

2nd, 3rd, and 5th.

[https://docs.inductiveautomation.com/display/DOC81/Perspective+Component+Methods#PerspectiveComponentMethods-ObjectTraversal](https://docs.inductiveautomation.com/display/DOC81/Perspective+Component+Methods#PerspectiveComponentMethods-ObjectTraversal)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 10, 2023, 5:39pm UTC](https://forum.inductiveautomation.com/t/self-component-paths/81772/3 "2023-11-10T17:39:18Z")

</div>

You seldom need to worry about it as the Browse Properties button will guide you through the selection.

 ![Self-selection](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/8/087b6c2f8d63e07d74386bd9d9df0897ed8d8223.png)

One thing's for sure though, `slef.getSibling`won't work. 🥴

---

<div class="post-metadata">

**Author:** ![Guy\_Andrus](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@Guy\_Andrus](https://forum.inductiveautomation.com/u/Guy_Andrus)\
**Post date:** [November 10, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/self-component-paths/81772/4 "2023-11-10T18:33:04Z")

</div>

Thanks for pointing me in the right direction...

---

<div class="post-metadata">

**Author:** ![Guy\_Andrus](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@Guy\_Andrus](https://forum.inductiveautomation.com/u/Guy_Andrus)\
**Post date:** [November 10, 2023, 6:35pm UTC](https://forum.inductiveautomation.com/t/self-component-paths/81772/5 "2023-11-10T18:35:26Z")

</div>

Oops, typo with the Slef. But getSibling does need a container to look in.
