What is the actual question here? I am not clear on it.
On Nov 26, 2012, at 8:16 AM, Berg Jones wrote: > No, thats not how it works. The code I have is correct. > > On Monday, November 26, 2012 4:19:16 AM UTC-5, smann wrote: > I'm not in front of maya right now. But I'm pretty sure you need to use > visible flag in your script. > > Channels can be keyable and not visible as well as visible and not keyable. > > The flag is either -v or -cb or something like that. > > Hth. > > -=s > > > > > > On Nov 26, 2012, at 3:27 AM, Berg Jones <[email protected]> wrote: > >> I have one control that I'm using to control FK/IK on a leg. I dont want to >> have one for IK and one for FK because it gets confusing. Right now I have >> reverse foot roll and translate attributes that I want to hide when I'm in >> FK mode and vice versa. >> >> Heres the expression in question that will disable translateX but wont >> unhide switch into IK. >> >> Thanks!!!! >> >> import maya.cmds as cmds >> import maya.mel as mel >> >> mel.eval('proc hideStuff(){setAttr -k 0 "legCtrl1.tx";}') >> mel.eval('proc showStuff(){setAttr -k 1 "legCtrl1.tx";}') >> >> myExpr = ''' >> if (legCtrl1.fkik == 0) >> { >> hideStuff(); >> } >> >> else if (legCtrl1.fkik == 1) >> { >> showStuff(); >> } >> ''' >> >> cmds.expression(string=myExpr) >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe > > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
