View Single Post
# 2 11-12-2011 , 05:50 PM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
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.