HI Guys, and girls…
Im stuck on something that shouldnt be to hard i think.
I have 2 sets of 2 radio buttons.
I want for one set of the radiobuttons to act like a switch.
So If of the radiobuttonGrp the first option is seleted ( that should be by defauult) you see object A and B is hidden. And if you select the other button, you hide object A and show B.
At the moment I have this:
string $MainHooksRadio = `radioButtonGrp -vr -l "Main Hooks " -cc "VisableMainHook();" -numberOfRadioButtons 2 -labelArray2 "MAIN HOOK 2500" "SECOND MAIN HOOK 1200" -select 1 MainRadBtnGrp`;
string $AuxHooksRadio = `radioButtonGrp -vr -l "Aux Hooks " -cc "VisableAuxHook();" -numberOfRadioButtons 2 -labelArray2 "Aux 500" "Aux 750" -select 1 AuxRadBtnGrp`;
global proc VisableMainHook(){
if (`radioButtonGrp -q -select MainRadBtnGrp` == 1)
setAttr SYREF:SecMainhook_prong.visibility 0;
setAttr SYREF:Mainblock.visibility 1;
if (`radioButtonGrp -q MainRadBtnGrp` == 2)
setAttr SYREF:SecMainhook_prong.visibility 1;
setAttr SYREF:Mainblock.visibility 0;
}
global proc VisableAuxHook(){
if (`radioButtonGrp -q -select AuxRadBtnGrp` == 1)
setAttr SYREF:Aux_block1.visibility 1;
setAttr SYREF:YudinAux_block.visibility 0;
if (`radioButtonGrp -q -select AuxRadBtnGrp` == 2)
setAttr SYREF:Aux_block1.visibility 0;
setAttr SYREF:YudinAux_block.visibility 1;
}
I tried several ways, sometimes i get them to disapear but they wont show up anymore.
Can some one please help me out?
On the first Global proc i get the error:
// Error: line 18: setAttr: Not enough data was provided. The last 0 items will be skipped. //
and on the second i see:
VisableAuxHook();
so it looks like that is working but it isnt.

