It seems to me that it should be as easy as: #define SCENE_LAYERS 999 #define BONE_LAYERS 999 etc.Even though this is a oversimplification of the matter. This is my aim in recoding the layer code.