Report as inappropriate

Is there a way of doing this per process rather than per layer? I'm not talking about using the advanced settings, still GCODE. Example: Say I have 2 objects on my print bed, but I want each of them to be a different color, your code calls for changing colors at a specified layer height, but is there a code for changing between processes (assuming I've assigned each model to it's own process)?