![]() |
Visible On/Off for a "menu"
Hi... I'm trying to make visible or not pushing a key for a future menu...
Code:
import viz Traceback (most recent call last): File "C:\Arquivos de programas\WorldViz\Vizard30/python\vizact.py", line 2667, in __onkeydown self._callGroup(self.__keydownmap[key]) File "C:\Arquivos de programas\WorldViz\Vizard30/python\vizact.py", line 2619, in _callGroup val = e.call(arg) File "C:\Arquivos de programas\WorldViz\Vizard30/python\vizact.py", line 2470, in _callStatic return self.func(*self.args,**self.kwargs) TypeError: 'NoneType' object is not callable What can I do!? thanks, Murilo |
I found a way!
Code:
import viz |
The problem with the original code was that you were using the vizact.onkeydown command incorrectly. It should be:
Code:
vizact.onkeydown( 'a', menuScene.visible,viz.ON) |
All times are GMT -7. The time now is 01:06 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC