# Perspective Script Transforms to Text

**URL:** <https://forum.inductiveautomation.com/t/perspective-script-transforms-to-text/58026>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 5, 2022, 3:25am UTC](https://forum.inductiveautomation.com/t/perspective-script-transforms-to-text/58026 "2022-04-05T03:25:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [April 5, 2022, 7:24am UTC](https://forum.inductiveautomation.com/t/perspective-script-transforms-to-text/58026/2 "2022-04-05T07:24:14Z")

</div>

Seems unlikely you can format specific things in a json file without coding atleast something xd

i have a code somewhere that pulls out texts out of the view.jsons, im sure it can be altered to pull out scripts too which you then should be able to format i suppose. Tho it doesnt give file location with it, so you will have to alter the code a bit for that

> [@Export all component text used in Ignition](https://forum.inductiveautomation.com/t/export-all-component-text-used-in-ignition/53668/4):
>
> Here is a script i used to automatically add all text values to the translate manager in perspective By checking the resource files… warning this may take a while xd import os import json from com.inductiveautomation.ignition.gateway import IgnitionGateway from com.inductiveautomation.ignition.gateway.script import GatewaySystemUtilities package = IgnitionGateway.get().getLocalizationManager().loadFullPackage() oldKeys = package.getAvailableKeys() context = IgnitionGateway.get() path…

you might also want to look at this

> [@How to create / append bulk tooltips via script with json export?](https://forum.inductiveautomation.com/t/how-to-create-append-bulk-tooltips-via-script-with-json-export/50072/4):
>
> You can do it with jq (a downloadable command-line executable designed to manipulate JSON): walk( if type == "object" and .valueSource == "opc" then .tooltip = "TagName: \(.name) \(.opcItemPath)" else . end) [https://jqplay.org/s/Pe6T7qNEFY](https://jqplay.org/s/Pe6T7qNEFY) I mostly copied this snippet from here:

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-script-transforms-to-text/58026)._
