WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-16-2015, 03:32 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The ScrollWheel tracker included with the vizconnect library returns Z position data. This could be combined with the X and Y data returned from the viz.mouse.getPosition() function:

Code:
import viz
import vizact
viz.go()

from vizconnect.util.virtual_trackers import ScrollWheel
mouseTracker = ScrollWheel(scaleVelocityWithDistance=True, extensionAccel=100, debug=False)

def printData():
	print mouseTracker.getPosition()

vizact.ontimer(1,printData)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Mouse Position javadi Vizard 2 11-19-2013 03:59 AM
get tracker position and euler chris_user Vizard 2 07-01-2011 01:31 AM
Mouse event: how to detect no mouse move event, how to set mouse position? Zhi Vizard 3 04-11-2011 06:25 PM
set mouse position AlyssaK Vizard 1 01-28-2009 04:05 PM
Can you link the position of a tracker to the orientation of an object? michaelrepucci Vizard 1 09-19-2008 10:23 AM


All times are GMT -7. The time now is 02:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC