Welcome to this Barisco tutorial! In this tutorial we are going to look at Groups in the editor and how we can use them.
Part 1 – The Basics
A group is an object that allows you to contain other objects. The group can then be moved without having to move each object individually. Besides being able to move the group, you also change other properties that can be found on most other objects. Such as opacity, width, height or add interactions.
Creating a group is easy. All you need to do is select one or multiple objects and then click on Group at the Ribbon Menu. As you can see now, the objects that I had selected have now been moved inside the newly created group.
Now, when I drag the Group across the Stage Area; the objects inside the Group move along with the Group as a single object.
The objects that are now inside the group can still be modified if I open the Group. To open a Group, you need to double click on the Group. You can also open the Group by using the Layers Panel.
Part 2 – Positioning child objects
When you create a group the group assumes the size of the objects that you had selected. If you then change the size or position of the objects inside the group; the group will not adapt to the size of these changes. This is because a Group is an object by itself and has its own position and size.
For example if I move the image inside this group, you can see that the size of the group is indicated by the dashed line. The image that I had moved now has a negative top and left position. If I exit the group and then select the group; you can see that the image is protruding from the group.
Objects inside a group will use the size of the group as an offset point. This means that if I set the image to use the bottom position and then resize the group. The image will maintain the bottom position that I had given it.
Part 3 – Group Layouts
Group layouts determine the behavior of the child objects inside the group. The default layout is Normal. And vertical and horizontal will position the child objects in a list. This feature is especially useful when you have some objects that need to appear this way. For example: a list of images.
Below the Layout dropdown menu, there are 2 options available: Spacing and Align.
Spacing allows you to control the spacing between the child objects and align allows you to set the alignment in case the child objects don’t have the same size.