# Move image "object has no attribute 'isHome'"

**URL:** <https://forum.inductiveautomation.com/t/move-image-object-has-no-attribute-ishome/68726>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [January 18, 2023, 1:41pm UTC](https://forum.inductiveautomation.com/t/move-image-object-has-no-attribute-ishome/68726 "2023-01-18T13:41:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayhan\_Yildirim](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@Ayhan\_Yildirim](https://forum.inductiveautomation.com/u/Ayhan_Yildirim)\
**Post date:** [January 18, 2023, 1:41pm UTC](https://forum.inductiveautomation.com/t/move-image-object-has-no-attribute-ishome/68726/1 "2023-01-18T13:41:49Z")

</div>

I get these errors when I use the following script! What's the problem here?

"AttributeError: '[com.inductiveautomation.factorypmi.application.com](http://com.inductiveautomation.factorypmi.application.com)' object has no attribute 'isHome'"

* * *

image = event.source.parent.getComponent('Image')

## if image.isHome: // Save Original position image.initialX = image.x image.initialY = image.y // Some kind of calculation newX = image.x + 500 newY = image.y + 100 // Move Image system.gui.transform(image,newX, newY, duration=250) // Image is not in original location anymore image.isHome = 0 else: // Go back to original position system.gui.transform(image,image.initialX, image.initialY, duration=250) image.isHome = 1

---

<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:** [January 18, 2023, 1:48pm UTC](https://forum.inductiveautomation.com/t/move-image-object-has-no-attribute-ishome/68726/2 "2023-01-18T13:48:35Z")

</div>

{ Please format your code with the "Preformatted Text" button in the forum editor so we can see it properly. Use the edit button to fix it in place--the pencil icon under your post. }

What is `isHome` ? A custom property on the Image component? Or elsewhere, perhaps? And where is this script? (What component, what event on that component?)

{ I shortened the title to be more forum-friendly, and added the Vision tag. }

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [January 18, 2023, 1:48pm UTC](https://forum.inductiveautomation.com/t/move-image-object-has-no-attribute-ishome/68726/3 "2023-01-18T13:48:41Z")

</div>

You're image component (not sure what it is, probably an image) does not have a `isHome` attribte which you are trying to call with `image.isHome`. You can check out what attributes or methods are available with your component by getting the component with script console and using `dir` on it or @pturmel inspect function.
