Logic Machine Forum
Create visual object in Lua script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Create visual object in Lua script (/showthread.php?tid=1173)



Create visual object in Lua script - Mackiovello - 12.01.2018

Is it possible to create visual objects with Lua scripts? 

There don't seem to be any helpers that allow object manipulation or creation. Is there an API for this? Is it safe to use?


RE: Create visual object in Lua script - admin - 12.01.2018

There's no API for manipulating Visualization. The only way to do it right now is with DB queries.


RE: Create visual object in Lua script - Mackiovello - 12.01.2018

Quote:The only way to do it right now is with DB queries.

Are there any examples of these database queries? Do you mean running SQL queries in DB Browser?


RE: Create visual object in Lua script - Bitver - 15.01.2018

(12.01.2018, 05:46)Mackiovello Wrote: Is it possible to create visual objects with Lua scripts? 

There don't seem to be any helpers that allow object manipulation or creation. Is there an API for this? Is it safe to use?

Hi.
I use export/import feature. Since exported layout is just .json file, you can modify it using any favorite programming language.


RE: Create visual object in Lua script - Mackiovello - 17.01.2018

Quote:I use export/import feature. Since exported layout is just .json file, you can modify it using any favorite programming language.

Hi, thank you for your answer. I've previously changed the number of visual objects etc. by editing the db files that included in the backup. This time, I would like to do it in Lua since it requires less setup for the person that will run the script. 

Is there any way to edit the database in Lua?