# Get View component Object using view path

**URL:** <https://forum.inductiveautomation.com/t/get-view-component-object-using-view-path/92246>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 22, 2024, 12:08pm UTC](https://forum.inductiveautomation.com/t/get-view-component-object-using-view-path/92246 "2024-06-22T12:08:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liam1](https://avatars.discourse-cdn.com/v4/letter/l/e68b1a/32.png) [@liam1](https://forum.inductiveautomation.com/u/liam1)\
**Post date:** [June 22, 2024, 12:08pm UTC](https://forum.inductiveautomation.com/t/get-view-component-object-using-view-path/92246/1 "2024-06-22T12:08:54Z")

</div>

Hi all,

I'm trying to write a script which will allow me to inspect a views component object (root and children) indirectly.

The idea is I have an embedded view and a script which will return all the children found in the embedded view root given the embedded view's path.

I've looked in the sdk docs and saw this method which seems to use a referencePath but not quite sure if it's the right one.

> **[PerspectiveElement](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.41/com/inductiveautomation/perspective/gateway/api/PerspectiveElement.html#getView())**
>
> declaration: package: com.inductiveautomation.perspective.gateway.api, interface: PerspectiveElement
