# System.gui.transform inside nested templates

**URL:** <https://forum.inductiveautomation.com/t/system-gui-transform-inside-nested-templates/45753>\
**Category:** Ignition\
**Created:** [April 19, 2021, 2:29pm UTC](https://forum.inductiveautomation.com/t/system-gui-transform-inside-nested-templates/45753 "2021-04-19T14:29:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [October 6, 2023, 7:51am UTC](https://forum.inductiveautomation.com/t/system-gui-transform-inside-nested-templates/45753/2 "2023-10-06T07:51:20Z")

</div>

For anybody that stumbles onto this old cold case, I'm working on the same problem here:

> [@How to transform a component inside of a vision template](https://forum.inductiveautomation.com/t/how-to-transform-a-component-inside-of-a-vision-template/80122):
>
> I have a button in a template, and I want to resize it to a perfect square at runtime regardless of how the template has been sized. To develop this, I have a Multi-State button inside a test template, and a test button that is in the same container as the template: [image] My desired result is this: button @ (x = 100, y = 100, width = 100, height = 100) [image] The obvious approach is this: # Retrieve the button from the template button = event.source.parent.getComponent('testTemplate').…

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-gui-transform-inside-nested-templates/45753)._
