# Modify Python Script Text

**URL:** <https://discourse.mcneel.com/t/modify-python-script-text/174692>\
**Category:** Grasshopper\
**Tags:** windows, python, ironpython\
**Created:** [February 1, 2024, 3:01pm UTC](https://discourse.mcneel.com/t/modify-python-script-text/174692 "2024-02-01T15:01:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [February 2, 2024, 7:29am UTC](https://discourse.mcneel.com/t/modify-python-script-text/174692/6 "2024-02-02T07:29:08Z")

</div>

> [@Measure](#):
>
> It would be better if the modified instance could directly edit the other instances, but the IronPython2Component.Text property is read-only. Is there a way for one python script instance to modify the text of another instance?

This would basically be equivalent to option 2) [here](https://discourse.mcneel.com/t/python-component-in-multiple-gh-files-how-to-keep-updated/174263/5) right (i.e. overwriting the GHPython component `Code` property)? If that’s not possible with the new Rhino 8 script editor, that sounds like another regression from GHPython (ping @eirannejad).

---

_[View the full topic](https://discourse.mcneel.com/t/modify-python-script-text/174692)._
