I'm hit with an issue here.. I have my expressions setup for my character's neck, spine & head controls which switch between the IK & FK selections by the animator.. my script gets executed fine & the expressiosn are created... but for some reason.. only when I enable the IK from the nurbs control's custom attribute, and then only after I go to the expression editor & open the respective expression & hit on the EDIT button.... only after these 2 steps... does my expression get activated... & then the rig works fine...
Is there anyway I can have my expression enabled by default after loading my cript on my rig..? I am including the expression section below for your reference...
expression -s "\r\n int $IkCond = `getAttr C_A_MainNeckCtrl_1.IkEnable`;
\r\n int $NumJoints = `getAttr C_A_MainNeckCtrl_1.dummyJointTotal`;
\r\n if ($IkCond == 1)
\r\n select -r C_A_NeckIKCurve_1.cv;
\r\n cluster -bs 1 -n C_A_NeckCluster_4 -wn C_A_HeadCtrl_1 C_A_HeadCtrl_1;
\r\n else if($IkCond < 1)
\r\n pointConstraint -mo -weight 1 (\"C_j_NeckFk_\"+ $NumJoints) C_A_HeadCtrl_1 ;
-o C_A_HeadCtrl_1 -n "HeadCtrlExp" -ae 1 -uc all ;