# Script to bind an UDT to an instancied template

**URL:** <https://forum.inductiveautomation.com/t/script-to-bind-an-udt-to-an-instancied-template/12497>\
**Category:** Ignition\
**Created:** [December 23, 2016, 2:56pm UTC](https://forum.inductiveautomation.com/t/script-to-bind-an-udt-to-an-instancied-template/12497 "2016-12-23T14:56:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BernardC](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@BernardC](https://forum.inductiveautomation.com/u/BernardC)\
**Post date:** [December 23, 2016, 2:56pm UTC](https://forum.inductiveautomation.com/t/script-to-bind-an-udt-to-an-instancied-template/12497/1 "2016-12-23T14:56:11Z")

</div>

Hello,

I’m trying to affect an UDT to a Motor instance (without UDT affected) by using script:

Button 1 -\> Motor 1  
Button 2 -\> Motor 2

i have the UDT template reference with:

InstMotor = event.source.parent.getComponent(‘Motor’).Motor

but i don’t know how to bind Motor1 or Motor2 to InstMotor with script.

Excuse my poor english.  
Thanks.
