How to make rig controller by using a keyboard to control

How to make rig controller by using a keyboard to control

onesupa
Observer Observer
516 Views
3 Replies
Message 1 of 4

How to make rig controller by using a keyboard to control

onesupa
Observer
Observer

Hi there, very grateful if anyone could solve my query. 

I have a robot model and rig controllers as the picture below, each controller controls the movement of my robot.

But when I want to make movement of the robot, I have to click on one of the controls and drag it.

I've seen people can use one of those keyboard with knobs, by spinning the knobs to replace the action of using the mouse to drag the controls. Kind of like blinding this action to the keyboard knob. 

Does anyone have a clue how can I make this happen, let's say bind my J1 control to my keyboard's left and right arrow, so that I can simply just press left or right of my keyboard to move my J1 control.

 

Many thanks for the ideas! 

 

Screenshot 2023-04-11 134139.png

0 Likes
517 Views
3 Replies
Replies (3)
Message 2 of 4

jmreinhart
Advisor
Advisor

Is this the sort of thing you are talking about? https://vimeo.com/295428746

 

You could set up custom hotkeys so the arrow keys offset the control position each time you click it, but trying to make it move the rig a little bit for each frame would be harder. There are options for the hotkey command to specify different behaviors on the initial key press and the key release, but there is no ability to do something when the key is held (at least not that I could find).

 

Another method (which would be more difficult) would be using an eventFilter.

Message 3 of 4

onesupa
Observer
Observer

Very appreciate for your help, the hotkey command is exactly what I need and solved my problem. And I was also expecting the model could move while a key is held, but it didn't work out.

The video is exactly what I want for the result, use an remote control to control the movement of a model. Do you have any resource relate to Unity and C# to control a 3d model by remote control. Also any resource of connecting a remote control to a pc, I was also trying to learn how to do that.

Thank you very much!

Message 4 of 4

jmreinhart
Advisor
Advisor

This youtube channel is the best resource I know of for learning how to use unity and C#

 

https://www.youtube.com/watch?v=p-3S73MaDP8

0 Likes