WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   viztracker + hand model (https://forum.worldviz.com/showthread.php?t=2074)

cgibb 06-04-2009 07:39 PM

viztracker + hand model
 
Hello,

I'm attempting to show a visible hand on the screen at all times by using viztrack.MousePos() and viz.link. While it seems to work in an outside world (outside of my room model), it appears that the distance of the model from the pointer is much too far. I've manually edited viztracker.py, setting self.length = 1, but is there a programmatic/better way to do this?

Thanks in advance for the help.

Gladsomebeast 06-06-2009 10:35 PM

Keep a handle to the MouseTracker object, then set length field to 1 when out of the house.

Code:

mouseHand = viztracker.MouseTracker()
mouseHand.length = 1

You can also use the mousewheel to change the hand distance.

cgibb 06-07-2009 10:17 AM

Quote:

Originally Posted by Gladsomebeast (Post 8075)
Keep a handle to the MouseTracker object, then set length field to 1 when out of the house.

Code:

mouseHand = viztracker.MouseTracker()
mouseHand.length = 1

You can also use the mousewheel to change the hand distance.

That worked great. Thanks!


All times are GMT -7. The time now is 09:24 PM.

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