counting objects in selection
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
simple and work:)
thx work well
.
To get how many objects you have in selection simply use
objsCnt = selection.countTools and Scripts for Autodesk 3dsMax