int getShapeIdFromObjectName(String objectName) {
		int i;
		for (i = JmolConstants.SHAPE_MIN_MESH_COLLECTION; i < JmolConstants.SHAPE_MAX; ++i) {
			MeshCollection shape = (MeshCollection) frame.shapes[i];
			if (shape != null && shape.getIndexFromName(objectName) >= 0)
				return i;
		}
		i = JmolConstants.SHAPE_DIPOLES;
		Dipoles dipoles = (Dipoles) frame.shapes[i];
		if (dipoles != null && dipoles.getIndexFromName(objectName) >= 0)
			return i;
		return -1;
	}