Merging scripts / importing parts of a script
Hello
I have different scripts for the same device (as I’m trying to get stuff from other users). How can I take the CSS mappings/scripts from one and import them (or copy/paste) into another CSS script / or merge both scripts ? (either whole content of the script or if possible only part of it)
Thanks !
Hello,
Many thanks for your answer. I was not sure it was possible but your answer encouraged me to look for it and I finally found the buttons. So here it is for other people who want to import/export specific items:
There are import and export button on the left panel within a script (left from the mapping and mode button). “Import items” button is always available and the “export checked items” appears/is no longer greyed out only if items are selected.
And of course there is the ‘global’ Import button on the Script screen listing all scripts, as well as Export button per script, but these one cannot be used to merge scripts.
Cheers
You can export specific mappings from a script from within the script editor (in the left panel at the top of the mapping table).
Export the mappings you want (you will get a json file), open the other script in the script editor and then import the json file.
If you want to export / import an entire script, this can be done in the ‘my scripts’ section when you come out of the script editor view.
This option will also export the modes in the script.
Sign up
User registration is currently not allowed.
You need to open the script and export it. Then you can import it as required. If they use the same controller template it is seamless. I have been using this approach to build “components” or parts of a mapping setup that can be imported into different controllers. I find this an effective way to get around some of the editor shortcomings of the app.
Edit: delete what you don’t want before exporting