Code:
def toggleLink():
global link
if link:
#If link exits, stop grabbing
link.remove()
link = None
elif vizmat.Distance(hand.getPosition(), ball.getPosition()) < .5:
link = viz.grab( hand, ball )
vizact.onpick(ball,toggleLink)
with this code i am able to one component using the marker. i have included one more component.. when i am trying to pick the other component the first component is also moving how to disable the link between the market and first component?