ScriptSpot home

Forum topic · General Scripting

counting objects in selection

By Piotr · 2013-11-22

Description

I have super simple question to ask.
How to count objects in selection and use this number as variable outside the loop, in random place of my code (wherever I want)
for e.

for t=0 to ....
(
count my object
t= number of my object
)

....
...
..
here i want t

I will be thankful for help.

Comments (2)
Piotr

simple and work:)

thx work well

miauu

.

To get how many objects you have in selection simply use


objsCnt = selection.count