Is that possible to add some actions to the "grabbed object"
Is that possible to add some actions to the "grabbed object"
the object is grabbed on the mouse or other equipment and I want to add some action to the grabbed object such as spinTo, sizeTo, but different signal input trigger different actions it is not the "grabber.GRAB_EVENT", this event can only trigger one movement after it is grabbed. I want to trigger different movement. Thanks |
You could set a flag when the object is grabbed. When the input signal is sent, check to see if the object is grabbed before applying the action:
Code:
import viz |
Quote:
is that possible to do these in VizChild object like osgb file |
Quote:
|
Yes, you can also define an attribute such as
Code:
torus.grabbed = False I'm not getting the same error. What version of Vizard are you running? |
Quote:
I forgot to add the code "viz.callback(grab.GRAB_EVENT,onGrab)" |
All times are GMT -7. The time now is 04:29 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC