i initialising those arays empty and clearing them at end just in case. maxscripts sometimes doing crazy stuff with variables. :poly122: got a bug today with array that where not initialized at the beginning. they just memory garbage from an other variable that wasnt cleared at end.
If you want to get a "count" of values set in a BitArray without converting to an Array, you can just use:<bitarray>.numberSet Since <bitarray>.count will return the number of elements in the BitArray regardless of whether they're set on or off.
Thanks for the post back Snoelk I meant to update this thread to say that I solved the issue I was having. There were a couple of things wrong with my script: * When you give a number to the Edit_Poly.selectByMaterialID property it has to be one less than that of the MaterialID you really want. So if your after MatID 2…