Skip to main content
rehana36276218
Known Participant
July 25, 2020
Answered

objects count

  • July 25, 2020
  • 3 replies
  • 2749 views

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

Correct answer femkeblanco

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);

3 replies

Participant
August 20, 2021

With the objects selected, right-click select Collect for Export/As Multiple Assets. The Asset Export panel will display each asset numbered.

 

Participant
January 18, 2024

You have saved me so much time and aggravation. Thank you stranger.

barbara_a7746676
Community Expert
Community Expert
July 25, 2020

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.

femkeblanco
femkeblancoCorrect answer
Legend
July 25, 2020

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);
pixxxelschubser
Community Expert
Community Expert
July 25, 2020

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