WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-21-2017, 12:05 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can create a custom event in vizconnect that's triggered using a signal from an input device:
  • Add an input device from the Inputs tab, in this case the joystick
  • Go to the Events tab in Vizconnect, add an event and give it a name (e.g. MY_EVENT)
  • Press the mappings button to define the input signal (button number) that triggers the event
  • In the application script, register a callback function for the event:

Code:
def myFunction(e):
    print 'event triggered'

viz.callback(viz.getEventID('MY_EVENT'), myFunction)
Reply With Quote
  #2  
Old 03-27-2017, 09:17 AM
fivel_lab fivel_lab is offline
Member
 
Join Date: Mar 2011
Posts: 36
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!
Reply With Quote
Reply

Tags
documentation, vizconnect

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
Regarding changing &using multiple tools at same time through vizconnect rajnishv Vizard 7 09-08-2016 04:48 AM
How do you use vizconnect Transport-JumpTo szkuls Vizard 1 05-27-2016 05:34 AM
Zspace display in Vizconnect JB_HP_Viz Vizard 5 06-05-2015 03:28 PM
Switching between input devices setup in vizconnect and not using vizconnect JB_HP_Viz Vizard 1 01-20-2015 05:19 AM
Vizconnect Save As Dialog Jeff Vizard 0 05-01-2014 09:45 AM


All times are GMT -7. The time now is 06:39 AM.


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