View Single Post
  #1  
Old 11-02-2015, 11:44 PM
Samuli Samuli is offline
Member
 
Join Date: Aug 2015
Posts: 15
How to use grabber tool with wand?

Hi Jeff,
I'd appreciate if you have some knowledge on how to use grabber tool with wand using ppt-tracking and wand 2014? Few more questions: What are proxy tools? What is the proxywrapper/grabberwrapper, their functions and what does the following code snippet from box stacker demo code do?
Code:
def init():
	"""Initialize the demo, only called once"""
	# add grabber tools based on proxy tools
	for proxyWrapper in vizconnect.getToolsWithMode('Proxy'):
		grabberTool = tools.grabber.HandGrabber(usingPhysics=True,
												usingSprings=True,
												placementMode=tools.placer.MODE_MID_AIR)
		
		name = 'box_stacker_grabber_tool_based_on_'+proxyWrapper.getName()
		grabberWrapper = vizconnect.addTool(raw=grabberTool,
											name=name,
											make='Virtual',
											model='Grabber')
		# parent the grabber wrapper to the proxy's parent
		grabberWrapper.setParent(proxyWrapper.getParent())
I can't find any relevant information about these things in the Vizard documentation/reference.
Reply With Quote