Logic Machine Forum
Erase Object Name - 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: Erase Object Name (/showthread.php?tid=1589)



Erase Object Name - Neol - 14.09.2018

I would like to delete the "Object Name" of several Object with a script. Any idea?

thanks


RE: Erase Object Name - admin - 14.09.2018

Can you explain the use case for that?


RE: Erase Object Name - Neol - 14.09.2018

I created an interface that helps me to set up my script and I want to erase it at the end without breaking my script


RE: Erase Object Name - admin - 14.09.2018

You can remove objects via grp.delete function. But if you need something temporary you should use storage instead of objects.


RE: Erase Object Name - Neol - 18.09.2018

(14.09.2018, 11:30)admin Wrote: You can remove objects via grp.delete function. But if you need something temporary you should use storage instead of objects.

Thank you, but this method delete the object and i just want to delete the object name.


RE: Erase Object Name - admin - 19.09.2018

Then the only way is via a db query (reload web interface for changes to appear):
Code:
id = buslib.encodega('1/1/1')
db:update('objects', { name = db.null }, { id = id })



RE: Erase Object Name - Neol - 19.09.2018

it works. thank you!