# Adding text actor to Scene

**URL:** https://discourse.paraview.org/t/adding-text-actor-to-scene/8547
**Category:** Web Support
**Created:** [December 2, 2021, 11:41am UTC](https://discourse.paraview.org/t/adding-text-actor-to-scene/8547 "2021-12-02T11:41:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![devngc](https://discourse.paraview.org/user_avatar/discourse.paraview.org/devngc/32/5514_2.png) [@devngc](https://discourse.paraview.org/u/devngc)
#### Post date: [December 2, 2021, 11:41am UTC](https://discourse.paraview.org/t/adding-text-actor-to-scene/8547/1 "2021-12-02T11:41:43Z")

</div>

Hey all,

I am interested in writing text to a vtkjs file. My proces of generating a vtkjs file is following;

1. generate dataset folders using vtkJSONDataSetWriter
2. Reference the folders in the index.json
3. Zip everything and rename the extension to .vtkjs

The above process has been working fine. Now I want to add text to it. I see that I can add vtkVectorText as polydata and therefore I can write to a file. This is an example. [sunpath.vtkjs](https://discourse.paraview.org/uploads/short-url/soYUme3mDLMrnb6HSbFJ1y6NyaO.vtkjs) (36.5 KB)

As you will see in the file. The text starts from the bottom left and that does not work in all cases. I see several examples where text can be added to a scene to be rendered in a window. Can I add text actor to the index.json I am using to create a vtkjs?

The following shows first object in the “Scene” in index.json. Can I add text as actors here?

```auto
"scene": [
        {
            "name": "Hourly_Analemmas",
            "type": "httpDataSetReader",
            "httpDataSetReader": {
                "url": "Hourly_Analemmas"
            },
            "actor": {
                "origin": [
                    0,
                    0,
                    0
                ],
                "scale": [
                    1,
                    1,
                    1
                ],
                "position": [
                    0,
                    0,
                    0
                ]
            },
            "actorRotation": [
                0,
                0,
                0,
                1
            ],
            "mapper": {
                "colorByArrayName": "",
                "colorMode": 0,
                "scalarMode": 4
            },
            "property": {
                "representation": 2,
                "edgeVisibility": 0,
                "diffuseColor": [
                    0,
                    0,
                    0
                ],
                "pointSize": 5,
                "opacity": 1
            },
            "legends": []
        },

```

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [December 2, 2021, 3:44pm UTC](https://discourse.paraview.org/t/adding-text-actor-to-scene/8547/2 "2021-12-02T15:44:27Z")

</div>

Not yet but @Sankhesh_Jhaveri is currently working on a Mapper2D which should allow TextActor to be used if I’m not mistaken. Once available, you will indeed be able to do what you are suggesting.
