Counting AllObjects

Rhinoscript: I’d like to use a progress meter based on the number of items returned by Rhino.AllObjects. I don’t see any methods to identify the number of items returned by Rhino.AllObjects other than to write one that laboriously counts each one in the collection. Is there a method for this I’m missing?

I think maybe you need the VBScript method Ubound(array) ?

yeah, what Mitch said…

Rhino.Print(uBound(Rhino.AllObjects()) + 1)


Weird - I tried that first and it failed. I’ll try it again.

Yes, that worked. Not sure why it didn’t the first time. Thanks for the help.