sensor wrapper
Hi,
I want to wrap an interface around a sensor plugin. I've done it before with a CustomObject ( derive from viz.CustomChild and use viz.upgradeCustomNode ...), and that works great. It looks like the same thing should work for a VizSensor object, but on the following it won't let me call the functions in the derived class (testCall). Code:
import viz AttributeError: 'VizSensor' object has no attribute 'testCall' Is there a way to get access to the functions I define in the derived class? Thanks, Joe |
Remove the extension when you call viz.upgradeSensor:
Code:
viz.upgradeSensor('sensor',SensorClass) |
Works great.
Thanks, Joe |
All times are GMT -7. The time now is 02:24 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC