# Fetch a component in perspective

**URL:** <https://forum.inductiveautomation.com/t/fetch-a-component-in-perspective/41236>\
**Category:** Ignition\
**Tags:** perspective, ignition81, scripting, ignition80\
**Created:** [December 5, 2020, 5:15pm UTC](https://forum.inductiveautomation.com/t/fetch-a-component-in-perspective/41236 "2020-12-05T17:15:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 5, 2020, 5:15pm UTC](https://forum.inductiveautomation.com/t/fetch-a-component-in-perspective/41236/1 "2020-12-05T17:15:32Z")

</div>

In a component event script on a vision component you can ‘fetch’ another component by traversing through the component hierarchy with `.parent` and `.getComponent()` as described [here](https://docs.inductiveautomation.com/display/DOC79/Component+and+Window+Scripting).

Can the same be accomplished in perspective? I can’t seem to find any documentation that describes the equivalent.

---

<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:** [December 5, 2020, 6:03pm UTC](https://forum.inductiveautomation.com/t/fetch-a-component-in-perspective/41236/2 "2020-12-05T18:03:45Z")

</div>

See here:

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