1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
proc rayproxy0(){ string $sel[0] = `ls -sl -dag -type shape`; for ($one in $sel) if(`objExists ($one+".geomType")`) {setAttr ($one+".geomType") 0;} print $sel" 设置None成功! \n"; }
proc rayproxy1(){ string $sel[0] = `ls -sl -dag -type shape`; for ($one in $sel) if(`objExists ($one+".geomType")`) {setAttr ($one+".geomType") 1;} print $sel" 设置 Bounding boxes 成功! \n"; }
proc rayproxy2(){ string $sel[0] = `ls -sl -dag -type shape`; for ($one in $sel) if(`objExists ($one+".geomType")`) {setAttr ($one+".geomType") 2;} print $sel" 设置 Preview geometry 成功! \n"; }
proc rayproxy3(){ string $sel[0] = `ls -sl -dag -type shape`; for ($one in $sel) if(`objExists ($one+".geomType")`) {setAttr ($one+".geomType") 3;} print $sel" 设置 Full geometry 成功! \n"; }
string $WindowPorxyz = "WindowPorxyz"; if (`window -ex $WindowPorxyz`) { deleteUI -window $WindowPorxyz; }
string $WindowPorxy = `window -title "三岁豆Er" -sizeable 0 $WindowPorxyz`; columnLayout -columnAttach "both" 10 -rowSpacing 5 -columnWidth 230; text -h 50 -label"Vray 代理批量设置工具"; button -label "导入代理" -c "vrayCreateImportProxyWindow"; button -label "导出代理" -c "vrayCreateCreateProxyWindow;"; button -label "None" -c "rayproxy0"; button -label "Bounding boxes" -c "rayproxy1"; button -label "Preview geometry" -c "rayproxy2"; button -label "Full geometry" -c "rayproxy3"; text -h 5 -label""; setParent ..; showWindow $WindowPorxyz;
|