blah has been moved and rotated.
cube has moved and rotated relatively.
That's what I mean.
I see now. You should try to be more clear in future OPs
Here is the code I would use, if you converted the axis angles to euler angles with that coding resource
This code only assumes a two dimensional mirror, I can add functionality for three dimensions if you'd like
$posOffset = "0 5 0"
function getChildTransform(%parent)
{
%pTrans = %parent.getTransform();
%pPos = getWords(%pTrans,0,2);
%pRot = axisToEuler(getWords(%pTrans,3,6));
%offsetLen = vectorLen($posOffset);
%offsetTheta = mAtan(getWord($posOffset,1),getWord($posOffset,0));
%xComp = %offsetLen * mCos(%pRot + %offsetTheta);
%yComp = %offsetLen * mSin(%pRot + %offsetTheta);
return vectorAdd(%xComp SPC %yCom @ " 0",%pPos) SPC %pRot;
}
I've never used the axis to euler converter before, you may have to adjust by a factor of 90 degrees to get it perfect but this code will get you in the ballpark