# Is it possible to change binding with scripting?

**URL:** <https://forum.inductiveautomation.com/t/is-it-possible-to-change-binding-with-scripting/11882>\
**Category:** Ignition\
**Created:** [June 30, 2016, 7:02am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-change-binding-with-scripting/11882 "2016-06-30T07:02:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![readywebsolutions](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@readywebsolutions](https://forum.inductiveautomation.com/u/readywebsolutions)\
**Post date:** [April 30, 2019, 6:39am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-change-binding-with-scripting/11882/3 "2019-04-30T06:39:25Z")

</div>

You can try the following code to get your binding working from a script, running in Designer (7.9.10, at least):

```auto
context = IgnitionDesigner.getFrame().getContext()
vision = context.getModule(VisionDesignerInterface.VISION_MODULE_ID)
binding = ExpressionBindingConfig("Your expression source string", overlayOptOutFlag)
vision.configureBinding(component, propertyName, binding)

```

I believe, there should be a way to do it in a Client too, once you figure out how to get its context.

---

_[View the full topic](https://forum.inductiveautomation.com/t/is-it-possible-to-change-binding-with-scripting/11882)._
