Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Remove shorcuts Interaction

hobbotuk
Contributor

Remove shorcuts Interaction

hobbotuk
Contributor
Contributor

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!

 

0 Likes
Reply
583 Views
5 Replies
Replies (5)

Christian_Garimberti
Advisor
Advisor

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

EESignature

hobbotuk
Contributor
Contributor

Thanks for your answerd,

 

I tried, but the arrow keys allways works regardless of which level is set 🤔

 

Best Regards!

Ruben

 

 

0 Likes

marc.winter2
Advocate
Advocate

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

Anonymous
Not applicable

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

0 Likes

sinje_thiedemann
Autodesk
Autodesk

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

0 Likes