#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
It sounds like you need to handle a grab event and then apply the action to the object.
|
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
You can get the hand model from the script that imports viztracker using the following code:
Code:
import viztracker hand = viztracker.get('righthand') Code:
composite.storeTracker( composite.RHAND, handTracker ) viz.link(handTracker,handModel) |
#5
|
|||
|
|||
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!! |
#6
|
|||
|
|||
Anybody any ideas here?
|
|
|
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 |