poly-phobic
11-18-2004, 09:16 PM
i mostly model. not too big of a mel person,
ive looked at many toggle tool sets and scripts, but ive not found a back face culling tollge.
anyone can help?
a poor attempt...
this seem to turn it on, but does not act as a toggle.
if (`getPanel -to (eval("getPanel -withFocus"))`){
$currentPanel = `getPanel -withFocus`;
if (`modelEditor -q -polymeshes $currentPanel`){
polysDisplayUpdateCulling $currentPanel;
}
else {
modelEditor -edit -polymeshes polysDisplayUpdateCulling 0 $currentPanel;
}
}
also is this possible to have a similar drawing in the viewport as XSI hidden line mode?
here are the pics below to show what i mean.
http://img.photobucket.com/albums/v295/vladimirjp/maya_bfc_on.jpg
http://img.photobucket.com/albums/v295/vladimirjp/maya_bfc_off.jpg
http://img.photobucket.com/albums/v295/vladimirjp/xsi_hidden_line.jpg
ive looked at many toggle tool sets and scripts, but ive not found a back face culling tollge.
anyone can help?
a poor attempt...
this seem to turn it on, but does not act as a toggle.
if (`getPanel -to (eval("getPanel -withFocus"))`){
$currentPanel = `getPanel -withFocus`;
if (`modelEditor -q -polymeshes $currentPanel`){
polysDisplayUpdateCulling $currentPanel;
}
else {
modelEditor -edit -polymeshes polysDisplayUpdateCulling 0 $currentPanel;
}
}
also is this possible to have a similar drawing in the viewport as XSI hidden line mode?
here are the pics below to show what i mean.
http://img.photobucket.com/albums/v295/vladimirjp/maya_bfc_on.jpg
http://img.photobucket.com/albums/v295/vladimirjp/maya_bfc_off.jpg
http://img.photobucket.com/albums/v295/vladimirjp/xsi_hidden_line.jpg
