How do you delete a layer with LUA script?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
daffy
Posts: 2
Joined: Thu Feb 17, 2005 6:03 am
Location: UK
Contact:

How do you delete a layer with LUA script?

Post by daffy »

Does anybody know how to delete a Moho layer with a LUA script?

(Sorry if it is in the manual and I have missed it!)

The work around I have used up to now is to create a temporary group layer, put all the redundant layers into that group layer. Then when the script has finished, manually delete the temporary group layer.
Regards Daffy
User avatar
Lost Marble
Site Admin
Posts: 2354
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

Actually, there is no Lua command to delete a layer. Why does your script need to delete a layer? Is there no way to implement it without needing to create these redundant layers?
Post Reply