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

01 January 2004, 12:53 AM
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.

01 January 2004, 02: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:

01 January 2004, 03:44 PM

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

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

01 January 2004, 06:55 PM
wow, thanks again equinox my script was nothing like that. thanks again!

CGTalk Moderation
01 January 2006, 06: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.