global proc fgTraceDRR( ) { if ( (`window -exists fgTraceDRRname`) == true ) deleteUI fgTraceDRRname; window -title "Trace Depth = Reflection/Refraction " -wh 400 100 fgTraceDRRname; columnLayout -adjustableColumn true; floatFieldGrp -label "Distance Across" numberStrings; button -l "Set Trace Depth Reflection Refraction " -c "dRR"; showWindow fgTraceDRRname; } fgTraceDRR; global proc dRR( ) { float $number[] = ` floatFieldGrp -q -v numberStrings `; float $orininal = $number[0]; float $double = $orininal + $orininal; setAttr "miDefaultOptions.finalGatherTraceRefraction" $orininal ; setAttr "miDefaultOptions.finalGatherTraceReflection" $orininal ; setAttr "miDefaultOptions.finalGatherTraceDepth" $double; };