Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 1 18-11-2004 , 06:12 PM
vladimirjp's Avatar
Subscriber
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871

Toggling Back face Cull on/off [per object]

ok i am no scripter or mel guy, mostly modeling... trying to make a toggle back face culling on/off

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;
}
}

can anyone help me put.
thanx in advance
:tup:

# 2 19-11-2004 , 05:23 PM
vladimirjp's Avatar
Subscriber
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
i was given this script today.
hope people will find it useful.

//toggles bc per object

global proc tglCulling()
{
if(`window -q -ex tcwin`)
{
if(`intField -q -v if1` == 0){ polyOptions -fb -bcv on; intField -e -v 1 if1; }
else{ polyOptions -bc -bcv off; intField -e -v 0 if1; }
}
else
{
window -ret -vis off tcwin; columnLayout; intField -v 0 if1;
}
}tglCulling();

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads