This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Touch/mosaic automation
#1
Hello, I've been messing around with a SL and figured there has to be an easier way to create a building structure with all variables automatically via scripting.
Anyone have any ideas or examples on how I'd go about doing this?
I believe this is called mosaic in the LM.
Reply
#2
The whole Mosaic config is stored as a single JSON variable in storage. The key is "mosaic30:config:0", it can be retrieved like this:
Code:
config = storage.exec('get', 'mosaic30:config:0')
Reply
#3
For SE Touch it most likely will be mosaic:config:0
------------------------------
Ctrl+F5
Reply
#4
Thank you!
I believe I have what I need now.

Daniel was correct, it's mosaic:config:0, I assume I can write with storage.exec('put', 'mosaic:config:0')? with an extra variable where i put the new Json?
I also notice there's an UID, can this be anything for example test_1 and test_2, or is there a strict adherence to a system?
Reply
#5
Code:
storage.exec('set', 'mosaic:config:0', config)
Reply


Forum Jump: