I am trying to check if there is only one "main/top level" group present in my maxfile. Basically i want to check that everything has been grouped at a top level and doesn't consist of 10's, possibly 100's of of objects.
I cannot seem to work out how to check that the group count for the current scene is not equal to 1.
Hopefully it looks something like. Tried many variations but a bit confused now on what options to try.
if groupHead.count != 1 do (
messagebox "more than one group present"
)
Any help would be much appreciated.