ScriptSpot

Forum topic · General Scripting

counting objects in selection

By kredka · 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)

simple and work:)

kredka · 2013-11-23

thx work well

.

miauu · 2013-11-23

To get how many objects you have in selection simply use


objsCnt = selection.count