GROUP:clone

GROUP:clone(
    name,
    parent,
    data
)

Create a new group (new_object_name), within an existing parent layer (parent_name) by copying all of the properties and children of this group. This new object will have all of the same actions, variables and it's current state will match the state of this control. All of the reference group's controls will be cloned into the new group.

The data argument is a table of properties that match the properties for that type of object as described in the gre.set_group_attrs function.


Parameters:
        new_object_name          The name for the new object, this must be a unique name in the parents namespace
        parent_name              The name of the layer to place this object within, this object must exist
        data                     Optional: A table containing group attribute tags as the keys with new values to be applied.
Returns:
        A GROUP object representing the newly created group.