View Single Post
  #3  
Old 05-11-2009, 01:57 AM
nasr nasr is offline
Member
 
Join Date: Apr 2009
Posts: 27
how to disable the link between the first object and move the second object

Code:
def toggleLink():
    global link
    if link:
        #If link exits, stop grabbing
        link.remove()
        link = None
    else:
        #If no link, grab the ball with the hand
        link = viz.grab( hand,ball )
       
vizact.onkeydown(' ',toggleLink)
jeff thankyou very much for your suggestions..
im using more than one object. when im moving the first object with the marker its perfect but when im leaving the first object and trying to move the second object the first object is still moving along with the cursor. how can disable moving the first object and just move the second object..
Reply With Quote