Page 1 of 1

Dimensions of groups

Posted: Fri Feb 19, 2016 12:06 am
by thatkeith
I'm making a tool to put a selection of graphics in a row and export them. The total combined pixel width is over 18000px, and the height is 1536px. When I group the items and export the group it works well, except the group is 8 pixels wider and taller than the actual objects. The end result needs to be the precise height and combined width of the images, so that makes the exported graphic too large. Is there a way to set a group NOT to have this extra width and height applied to a group? Or is there a simple way to export the set of images as a single graphic without grouping them?

k

Re: Dimensions of groups

Posted: Fri Feb 19, 2016 12:26 am
by FourthWorld
Try setting the margins of the group to zero.

Re: Dimensions of groups

Posted: Fri Feb 19, 2016 12:26 am
by dunbarx
Hi

Is it possible that the default margins, four pixels, is creating the offset you are seeing? These are set upon creation, unless the templateGroup has been pre-defined.

Look up the "margins" property in the dictionary. This allows you to manage all four at once.

Craig Newman

Re: Dimensions of groups

Posted: Fri Feb 19, 2016 12:45 am
by thatkeith
Bingo! Thanks Richard and Craig, that was it. I must have tried every other conceivable option but totally blanked on that one. :?