onactionend
Hi,
moving to Vizard 3 from Vizard 2.5 onactionend seems to work differntly: Old working code: def onactionend(object,action): if object == screenWall and action == viz.MOVE: putGraphOnScreenWall() viz.callback(viz.ACTION_END_EVENT,onactionend) New code, not working yet: def onactionend(e): print 'end',e.object,e.action if e.object is screenWall and e.action is viz.MOVE: putGraphOnScreenWall() viz.callback(viz.ACTION_END_EVENT,onactionend) What to do? Best, Johannes |
Can you post a simple working example that reproduces the problem? Also, please use the [code][/code] tags when posting code samples. It will preserve the tabs which is necessary for python code.
|
Thank you for being fast and sorry for beeing slow - too many other things right now ;)
TypeError: onactionend() takes exactly 2 arguments (1 given) ** WARNING: TypeError: onactionend() takes exactly 2 arguments (1 given) Sample Code: Code:
def onactionend(object,action): |
Can you post a working script? I can't actually run the code you posted since it is not a fully working script. Either way, you might want to look at the documentation for viz.ACTION_END_EVENT. It shows a simple example on how to correctly handle the callback.
|
All times are GMT -7. The time now is 02:47 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC