WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-31-2014, 02:21 PM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
Object Actions

Hi Guys,

I have set up a number of objects to move in certains ways when selected by the mouse, however I need this to know work with a hand model.

I am using a script called GrabHand, provided for me, it brings in the hand and grabbing functions....but I have no clue how to get my actions to work alongside this.

I can't post the grabhand script but any ideas would be great!
Reply With Quote
  #2  
Old 04-01-2014, 09:30 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
It sounds like you need to handle a grab event and then apply the action to the object.
Reply With Quote
  #3  
Old 04-01-2014, 12:10 PM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
Yes, I got it working on a separate script where I add an arrow that is linked to the mouse tracker and it worked perfectly. But perhaps I am being incredibly stupid but I can't insert a hand model and link the hand to either the wiimote or viztracker to do the same thing ...... I am lost.
In viztracker it inserts a default hand, but I don't know how to add one on my own ..... Or eveeln get a handle on the default to use to search for intersections
Reply With Quote
  #4  
Old 04-04-2014, 03:35 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can get the hand model from the script that imports viztracker using the following code:
Code:
import viztracker
hand = viztracker.get('righthand')
Or if you want to use your own model instead you could try commenting out the createRightHand method and linking your model directly to the tracker inside the viztracker file:
Code:
composite.storeTracker( composite.RHAND, handTracker )
viz.link(handTracker,handModel)
If you're planning to upgrade to Vizard 5, the next Beta with vizconnect will have features (e.g. grabber tool) that will make these types of tasks much easier.
Reply With Quote
  #5  
Old 04-14-2014, 07:40 AM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
OK not really getting anywhere, I am still lost specifically with how to call in the hand to my main script.
I have uploaded the viztracker file I am using along with the grabhand file.....the grabhand file creates the hand model and the physics etc to control grabbing functions!
So not entirely sure how to call the hand from the grabhand script into the main script.....am I going about this the right way?

I tried the viztracker method but it doesn't do anything, I don't even get a hand appearing on the screen!
Yes Jeff, I look forward to getting the grabber tool up and running on Vizard 5!!
Attached Files
File Type: pdf GrabHand.pdf (76.9 KB, 1050 views)
File Type: pdf viztracker.pdf (45.1 KB, 917 views)
Reply With Quote
  #6  
Old 04-25-2014, 08:53 AM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
Anybody any ideas here?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Rotate object around mainView? performlabrit Vizard 3 12-19-2013 06:31 AM
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 03:15 PM
AMD graphics hardware seems not to preload object sleiN13 Vizard 2 03-20-2012 06:08 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
rotate to object jargon Vizard 1 08-08-2005 12:20 PM


All times are GMT -7. The time now is 05:49 PM.


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