30 Jun
2009
30 Jun
'09
12:11 a.m.
Hi, I am currently using the modeldisp command on the command line to hide and view various molecules within a single mol2 file. I was wondering how I would be able to access how many total molecules there were in a single mol2 file. For example, if the mol2 file is loaded into model 0, I would be using modeldisp #0.$i etc in a large loop where $i is changing. What command can I use to return a value for the total number of molecules in the mol2 file so I can have this be the upper limit of $i? Thanks for your help, Chris