Highlighted

objects count

Explorer ,
Jul 25, 2020

Copy link to clipboard

Copied

hi every body , my question is that in Illustrator 2020 i design stickers to print in prepress stickers design are in circle but around 70 in a sheet , when i change sheet size the quantity i need to count manually , is there any why that i f i select all objects , illustrator shows me total numbers of objects in group or without group , like in corel draw old versions easily tell you the numbers of objects.if third party scripts or plugins required for this simple things , then adobe need to be closed adobe apps

 

Thanks

For non-grouped items vs groups:

var groupNo = 0;
for (var i = 0; i < selection.length; i++) {
  if (selection[i].typename == "GroupItem") {
    groupNo = groupNo + 1;
  }
}
var nonGroupNo = selection.length - groupNo;
alert("Non-grouped items: " + nonGroupNo + "\
Groups: " + groupNo + "\
Non-grouped items + groups: " + selection.length);

Topics

Draw and design, Feature request, Scripting, Third party plugins, Tools

Views

112

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

objects count

Explorer ,
Jul 25, 2020

Copy link to clipboard

Copied

hi every body , my question is that in Illustrator 2020 i design stickers to print in prepress stickers design are in circle but around 70 in a sheet , when i change sheet size the quantity i need to count manually , is there any why that i f i select all objects , illustrator shows me total numbers of objects in group or without group , like in corel draw old versions easily tell you the numbers of objects.if third party scripts or plugins required for this simple things , then adobe need to be closed adobe apps

 

Thanks

For non-grouped items vs groups:

var groupNo = 0;
for (var i = 0; i < selection.length; i++) {
  if (selection[i].typename == "GroupItem") {
    groupNo = groupNo + 1;
  }
}
var nonGroupNo = selection.length - groupNo;
alert("Non-grouped items: " + nonGroupNo + "\
Groups: " + groupNo + "\
Non-grouped items + groups: " + selection.length);

Topics

Draw and design, Feature request, Scripting, Third party plugins, Tools

Views

113

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 25, 2020 0
Most Valuable Participant ,
Jul 25, 2020

Copy link to clipboard

Copied

Do you know menu: Window --> Document info (options: Objects) ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 25, 2020 0
Adobe Community Professional ,
Jul 25, 2020

Copy link to clipboard

Copied

The Document Info > Objects that pixxxel recommended will show you the total number of objects. It will not tell you the number of groups. Each object in each group will be counted.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 25, 2020 0
Contributor ,
Jul 25, 2020

Copy link to clipboard

Copied

For non-grouped items vs groups:

var groupNo = 0;
for (var i = 0; i < selection.length; i++) {
  if (selection[i].typename == "GroupItem") {
    groupNo = groupNo + 1;
  }
}
var nonGroupNo = selection.length - groupNo;
alert("Non-grouped items: " + nonGroupNo + "\
Groups: " + groupNo + "\
Non-grouped items + groups: " + selection.length);

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 25, 2020 1