# Getlayoutusertext

**URL:** <https://discourse.mcneel.com/t/getlayoutusertext/212138>\
**Category:** Scripting\
**Tags:** windows\
**Created:** [November 8, 2025, 12:31pm UTC](https://discourse.mcneel.com/t/getlayoutusertext/212138 "2025-11-08T12:31:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![onlyforpeace](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/onlyforpeace/32/768248_2.png) [@onlyforpeace](https://discourse.mcneel.com/u/onlyforpeace)\
**Post date:** [November 8, 2025, 12:31pm UTC](https://discourse.mcneel.com/t/getlayoutusertext/212138/1 "2025-11-08T12:31:03Z")

</div>

Hello,

I saw that there is layout user texts in layout propriety, how can I acces to this fields with rhinosrciptsyntax? GetUserText(), and GetDocumentUserText(), is possible but not GetLayoutUserText()…

---

<div class="post-metadata">

**Author:** ![onlyforpeace](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/onlyforpeace/32/768248_2.png) [@onlyforpeace](https://discourse.mcneel.com/u/onlyforpeace)\
**Post date:** [November 9, 2025, 5:27pm UTC](https://discourse.mcneel.com/t/getlayoutusertext/212138/2 "2025-11-09T17:27:26Z")

</div>

Maybe it can help, i scripted something to acces to:

```python
#! python 3
import scriptcontext as sc

def get_layout_user_text(layout_name, key):
    doc = sc.doc
    for p in doc.Views.GetPageViews():
         if p.PageName == layout_name:
            layout = p.MainViewport
            value = layout_vp.GetUserString(key)
            return value
    return None

```
