View Full Version : Display Settings

11 November 2006, 05:37 PM
I need to check the status of the users display settings for "Flat Shade All" and "X-Ray Shading", store the settings, change them both to "on", then restore previous settings at a later point.

Any ideas?

11 November 2006, 04:14 AM
Hai GoodMorning

This script could help you

//checks the currentPanel Settings

string $modPanel=`getPanel -wf`;

string $disApp=`modelEditor -q -da $modPanel`;

int $xr=`modelEditor -q -xray $modPanel`;

//edits it

if($disApp!="flatShaded") modelEditor -e -da flatShaded $modPanel;

if($xr!=1) modelEditor -e -xray 1 $modPanel;

//returns it back

modelEditor -e -da $disApp $modPanel;

modelEditor -e -xray $xr $modPanel;

CGTalk Moderation
11 November 2006, 04:14 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.