def moveDrillToHand(drillOffset, hand='right'):
    drill = om.findObjectByName('drill')
    if not drill:
        drill = addDrillAffordance()

    assert hand in ('right', 'left')
    drillTransform = drill.actor.GetUserTransform()
    rightBaseLink = getLinkFrame(hand[0] % '%s_hand_face')
    drillTransform.PostMultiply()
    drillTransform.Identity()
    drillTransform.Concatenate(drillOffset)
    drillTransform.Concatenate(rightBaseLink)
    drill._renderAllViews()
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/segmentation.py/moveDrillToHand/swapped operands of `%`