ericz
04-29-2008, 12:37 AM
Hey,
I've created an FK/IK switch for the arm of my character. I used the "Third Arm" script at HighEnd3D. Now, my problem is that while it switches perfectly between the two, for animation purposes, you need to 'snappy' the IK controller over the FK controller for it to appear seamless when it's switched. Right now how it works is the BND arm moves instantly to the FK from the IK when I click from 0 to 1 in my attribute. This is all well and good and all it means is that I have to make another step while animating to make it seamless, but I was wondering if it were possible at all to create an expression in my FKIK attribute that does the work for me. Essentially, when I switch from 0 to 1 on my FKIK attribute, can I create an expression for it that says:
select -cl ;
select -r wrist_CTRL ;
select -tgl L_armIk_CTRL ;
string $selected[] = `ls -sl`;
pointConstraint -n tmpPoint $selected[0] $selected[1];
orientConstraint -n tmpOrient $selected[0] $selected[1];
delete tmpPoint tmpOrient;
How would add this script as an expression so that it does this when I toggle between 0 and 1 in the FKIK attribute?
Thanks!
I've created an FK/IK switch for the arm of my character. I used the "Third Arm" script at HighEnd3D. Now, my problem is that while it switches perfectly between the two, for animation purposes, you need to 'snappy' the IK controller over the FK controller for it to appear seamless when it's switched. Right now how it works is the BND arm moves instantly to the FK from the IK when I click from 0 to 1 in my attribute. This is all well and good and all it means is that I have to make another step while animating to make it seamless, but I was wondering if it were possible at all to create an expression in my FKIK attribute that does the work for me. Essentially, when I switch from 0 to 1 on my FKIK attribute, can I create an expression for it that says:
select -cl ;
select -r wrist_CTRL ;
select -tgl L_armIk_CTRL ;
string $selected[] = `ls -sl`;
pointConstraint -n tmpPoint $selected[0] $selected[1];
orientConstraint -n tmpOrient $selected[0] $selected[1];
delete tmpPoint tmpOrient;
How would add this script as an expression so that it does this when I toggle between 0 and 1 in the FKIK attribute?
Thanks!
