How to clone a group use lua?

Questions and information about using Lua scripting with Storyboard

Moderator: jamiev

How to clone a group use lua?

Postby zero147 » Mon Feb 26, 2018 2:13 am


How to clone a group use lua?

I tried something.

1.gre.clone_object("group","groupclone","layer",{x = 100, y = 10})
got an warn message. (WARN [4.718]:Unable to find reference group to clone)

2.gre.clone_object("","groupclone","layer",{x = 100, y = 10})
It looks like everything is fine, but when you have a table control under the group, you can't clone it successfully, the sbengine crashes.

Posts: 33
Joined: Mon Jun 06, 2016 4:27 am

Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 1 guest