#1
|
|||
|
|||
vizconnect documentation?
Hi!
Is there any detailed vizconnect documentation available (e.g., like the command indexes available for other modules, or something similar)? I can see through the IDE that there are a lot of methods available for objects returned from vizconnect but it's difficult to figure out what they do or how to use them. Specifically, I am curious about vizconnect.getInput and vizconnect.setUpdateFunction. I want to get a handle to the joystick specified in vizconnect config file and specify my own update function for it. Is the object returned from getInput the joystick? or some kind of wrapper? if the former, what arguments do I need to pass to setupdatefunction to specify my own update function? if the latter, how do i get the joystick itself? Thanks.. |
#2
|
|||
|
|||
Each time an object is added in vizconnect, both a raw and a wrapper object are added to the vizconnect session. The raw object is the same as the tracker, display window, input device etc. that is returned when using Vizard code to add the object. The wrapper object is a vizconnect layer that wraps up the raw object along with meta data and may include additional functionality based on the object type. The raw object is accessible from the wrapper:
Code:
joystick = vizconnect.getInput('joystick').getRaw() |
#3
|
|||
|
|||
Hi Jeff.. thanks for your help. Actually, I am just trying to intercept buttondown events on the joystick so I can send them to a function that determines the appropriate action to take based on the button pressed. I am upgrading from a vizard 4 set up where I had a modified onSensorDown function doing that. Is there an easier way to do that in vizard 5 or do I still need the handle to the raw joystick to accomplish this?
|
#4
|
|||
|
|||
You can create a custom event in vizconnect that's triggered using a signal from an input device:
Code:
def myFunction(e): print 'event triggered' viz.callback(viz.getEventID('MY_EVENT'), myFunction) |
#5
|
|||
|
|||
Thanks! very helpful. It seems like vizconnect has an amazing amount of functionality that would be very useful.. Can you point me to more extensive documentation of vizconnect that I could explore? Or is that not available yet? Thanks!
|
#6
|
|||
|
|||
The vizconnect documentation we have is in the tutorials and reference sections of the Vizard Help. We hope to add documentation for the vizconnect API in the future which applies more to using vizconnect objects in the application script.
|
Tags |
documentation, vizconnect |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regarding changing &using multiple tools at same time through vizconnect | rajnishv | Vizard | 7 | 09-08-2016 05:48 AM |
How do you use vizconnect Transport-JumpTo | szkuls | Vizard | 1 | 05-27-2016 06:34 AM |
Zspace display in Vizconnect | JB_HP_Viz | Vizard | 5 | 06-05-2015 04:28 PM |
Switching between input devices setup in vizconnect and not using vizconnect | JB_HP_Viz | Vizard | 1 | 01-20-2015 06:19 AM |
Vizconnect Save As Dialog | Jeff | Vizard | 0 | 05-01-2014 10:45 AM |