WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   LEAP Motion Listener (

Pip 06-29-2015 01:55 AM

LEAP Motion Listener
1 Attachment(s)
Hi everyone,

I am trying to use the LEAP Motion Controller in a Vizard 5.1 script. Creating a Controller is not a problem but everytime I try to register a Listener, Vizard crashes. Here's my code:

class SampleListener(Leap.Listener):
    finger_names = ['Thumb', 'Index', 'Middle', 'Ring', 'Pinky']
    bone_names = ['Metacarpal', 'Proximal', 'Intermediate', 'Distal']

    def on_init(self, controller):
        print "Initialized"

    def on_connect(self, controller):
        print "Connected"

def main():

        import viz
        # Create a sample listener and controller
        listener = SampleListener()
        # Have the sample listener receive events from the controller

When using the parent class Leap.Listener(), we experience no crashes.

Any helpful ideas?

For additional hints, I've added the crashrpt.xml

Goof 07-09-2015 09:50 AM

Is this the complete code that worked with Leap.Listener?

You never created a controller.

All times are GMT -7. The time now is 09:47 AM.

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