I have a chain, lets say with 3 elements, connected with parentConstraints.
When I rotate the second element, element 3 is rotated with it, of course.
what I need:
When element 2 is rotated, element 3 should stay fixed, and all other elements are rotated, accordingly.
The system should behave as if there would be counterrotations applied, so that one element (here element 3) keeps stationary.
What I tried so far gives a cycle. I used a particleShape as the last child to get its worldPosition, then multiply it with -1, and apply that to null2, the master transform. null1 should be rotated. Actually the counter movement of null2 should make particle1 stay fixed...but it doesn`t.
Here`s a example scene with two elements
CODE
particle -p 0 0 0 -c 1;
setAttr particleShape1.particleRenderType 4;
addAttr -is true -ln "radius" -at "float" -min 0 -max 10 -dv 0.5 particleShape1;
setAttr "particleShape1.radius" 4;
group -empty;
group -empty;
move 0 0 10;
parentConstraint -mo -weight 1 null2 null1;
parentConstraint -mo -weight 1 null1 particle1;
createNode multiplyDivide;
setAttr "multiplyDivide1.input2X" -1;
setAttr "multiplyDivide1.input2Y" -1;
setAttr "multiplyDivide1.input2Z" -1;
connectAttr -f particleShape1.worldCentroidX multiplyDivide1.input1X;
connectAttr -f particleShape1.worldCentroidY multiplyDivide1.input1Y;
connectAttr -f particleShape1.worldCentroidZ multiplyDivide1.input1Z;
connectAttr -f multiplyDivide1.outputX null2.translateX;
connectAttr -f multiplyDivide1.outputY null2.translateY;
connectAttr -f multiplyDivide1.outputZ null2.translateZ;
So, has anybody a idea how I could succeed in making one element in a chain chain stay fixed whereas all other elements are rotated?