HI!
I would like to remove the shortcuts interaction in the arrow keys
Interaction -----
Down Move Camera Backward
Left Revolve Camera Left around Pivot
Right Revolve Camera Right around Pivot
Up Move Camera Forward
Those movement doesn't work properly (they are quite erratic, and sometime to fast)
Anyway I would like to do a panning with those keys usin the fuinction
setCameraPanning(x, y)
But the vrKey() funtion doesn't override the the Interaction arrows Keys Shortcuts
Could any one help me plase?
Thanks in advance!
Hi,
maybe you can manage different keyboard levels with the
setDefaultKeyboardLevel()
and
setKeyboardLevel()
i founded them in keys.py example.
Best
Chris
Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn
Thanks for your answerd,
I tried, but the arrow keys allways works regardless of which level is set 🤔
Best Regards!
Ruben
Hi,
same here. It would be nice to have the standard vred shortcuts on a specific keyboardlevel.
So it can be switched off or replaced.
Same way for variantSet shortcuts.
Best regards,
Marc
Hello,
I did some tests, As you can imagine, it is not in VRED> Preferences -> Script that the keybindings of which we speak are referenced.
When trying to manipulate the VrKey class I realized that even when cleaning up the bindings like this:
KeyRight = vrKey (Key_Right)
KeyRight.removeConnections ()
It doesn't work, so that means that the camera rotation events we're talking about are coded in the software. As part of the software configuration, I leave the honor to the VRED technician to tell you whether or not there is a bindings configuration file to remap these elements.
At first sight while delving into:
C: \ Program Files \ Autodesk \ VREDPro-12.4
C: \ ProgramData \ Autodesk \ VREDPro-12.4
There is no bindings configuration file
Have a good day
Hi,
@hobbotuk wrote:
Those movement doesn't work properly (they are quite erratic, and sometime to fast)
this issue is in our bug tracker backlog.
The arrow keys speed is controlled by the "Motion Factor" which can be set in menu Interaction > Navigation > Motion Factor.
The binding itself cannot be removed, but this is an idea how you can "disable" the arrow key navigation:
In the function that you connect to vrKey(Key_Right) (and all other arrow keys) call
setMotionFactor(0.0)
in the beginning. I did a quick test and this stops the camera from moving when pressing the arrow keys.
After that line you can implement your custom panning.
Please note that it is not sufficient to just set the motion factor in the GUI to 0.0 because it changes automatically when using functions like Show all and Zoom to.
Kind regards
Sinje
Can't find what you're looking for? Ask the community or share your knowledge.