Code:
int $status = `selectPref -q -useDepth`;
selectPref -useDepth (!$status);
if ((!$status) == 0)
print("Camera based selection is off.\n");
else
print("Camera based selection is on.\n");
This will toggle it on and off. It will also print out whether it's now on or off.
Imagination is more important than knowledge.
Last edited by NextDesign; 11-12-2011 at 05:55 PM.