PDA

View Full Version : Custom Polygon display, backface culling script?


Levitateme
01-19-2004, 11:53 PM
I am trying to get ...i would guess a if statement script made. i was wondering if anyone here can get it to work. my friend last night told me the way i was going about making it wont work. so i am lost. im trying to make the custom poly display for back face culling come on when i click on the script. if i click on the script again it turns off. the back face culling in the viewport still lets me select what i cant see. im trying to not use that. anyone be able to try this out? i would really appreciate it.

mhovland
01-20-2004, 01:23 PM
Post what you have, so we can take a look at it. If you want to learn how to script, you will learn better from your mistakes.

Of course, if you just want someone to write it for you, thats cool, too.:thumbsup:

safakoner
01-20-2004, 02:44 PM
Hi


string $Cursel[]=`ls -sl`;
int $bfc = `getAttr ( $Cursel[0] + ".backfaceCulling" )`;

if ($bfc == 0){
setAttr ( $Cursel[0] + ".backfaceCulling" ) 3;
print "Backface Culling Full";
}else{
setAttr ( $Cursel[0] + ".backfaceCulling" ) 0;
print "Backface Culling Off";}

Levitateme
01-20-2004, 05:55 PM
wow, thanks again equinox my script was nothing like that. thanks again!

CGTalk Moderation
01-17-2006, 05:00 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.