WEBVTT

1
00:00:00.010 --> 00:00:05.120
Now that you have an understanding of how to customize the Blender interface and are

2
00:00:05.120 --> 00:00:09.160
familiar with many of the user preferences, let's jump back into the user preferences

3
00:00:09.160 --> 00:00:13.900
and take a look at how to customize various hotkeys within Blender.

4
00:00:13.900 --> 00:00:17.560
So to customize hotkeys, you're going to go to your user preferences and then underneath

5
00:00:17.560 --> 00:00:21.420
the input panel, you can see your different hotkeys here.

6
00:00:21.420 --> 00:00:26.000
So these are all the different sections that we have available to switch through.

7
00:00:26.000 --> 00:00:30.760
There's obviously quite a few of them, but let's just take a look at something simple.

8
00:00:30.760 --> 00:00:35.760
So if we wanted to say change the hotkey that you use to rotate the 3D view, which by default

9
00:00:35.760 --> 00:00:41.120
is just middle click and drag, if we wanted to change that, we would first go into the

10
00:00:41.120 --> 00:00:42.240
3D view section.

11
00:00:42.240 --> 00:00:46.680
So we'll toggle this down and let me just expand my window so that you can see this

12
00:00:46.680 --> 00:00:48.840
a little better.

13
00:00:48.840 --> 00:00:52.120
And we can, first of all, we'll toggle this back.

14
00:00:52.120 --> 00:00:55.980
I just had looked at it previously, but this is what it should look like by default.

15
00:00:55.980 --> 00:00:59.500
So if we toggle down 3D view, we can then see all the different sections within the

16
00:00:59.500 --> 00:01:05.180
3D view, such as global 3D view, object mode, mesh, curve, armature, et cetera.

17
00:01:05.180 --> 00:01:08.820
And in this case, if I wanted to change how to rotate the view, this is going to be under

18
00:01:08.820 --> 00:01:13.940
3D view global because no matter what editing mode I'm in, it's going to be a global option.

19
00:01:13.940 --> 00:01:17.720
So I'll toggle this down and we can see all the different settings here.

20
00:01:17.720 --> 00:01:20.900
So we've got our rotate view right here.

21
00:01:20.900 --> 00:01:24.140
So first of all, I can enable or disable this.

22
00:01:24.140 --> 00:01:28.700
I can also delete it by hitting the X if I want to just remove this entry completely.

23
00:01:28.700 --> 00:01:33.280
Or to edit it, let's just toggle this down and we can see that this is the actual path

24
00:01:33.280 --> 00:01:38.660
for the code that it's using because you can actually, this is the Python path basically.

25
00:01:38.660 --> 00:01:41.500
Next we have the mouse button that it's using.

26
00:01:41.500 --> 00:01:43.580
So this case it's middle mouse button.

27
00:01:43.580 --> 00:01:48.580
And we have, whether it's a press, release, click, or double click, the actual key is

28
00:01:48.580 --> 00:01:49.980
listed here.

29
00:01:49.980 --> 00:01:53.260
And then we have modifier keys right through here.

30
00:01:53.260 --> 00:01:57.820
So I could either, if I wanted to say change this to the left mouse button or something,

31
00:01:57.820 --> 00:02:03.100
I could just click this and then click again and it would be left mouse, or you can change

32
00:02:03.100 --> 00:02:04.400
it here.

33
00:02:04.400 --> 00:02:08.000
So in this case, I'm going to leave this at the middle mouse button and I'm just going

34
00:02:08.000 --> 00:02:09.380
to add a modifier key.

35
00:02:09.380 --> 00:02:11.860
So we'll just add in the alt key.

36
00:02:11.860 --> 00:02:15.620
So now if I go back to the 3D view, if I middle click and drag, it doesn't do anything.

37
00:02:15.620 --> 00:02:20.340
But if I middle alt, middle click and drag, then it rotates around as expected.

38
00:02:20.340 --> 00:02:23.460
So pretty simple to change most any hot key you wish.

39
00:02:23.460 --> 00:02:27.740
Let's just reset this back to default, which by the way you can also do.

40
00:02:27.740 --> 00:02:30.620
If you just click restore right here, restore is an option.

41
00:02:30.620 --> 00:02:34.780
If any of the hot keys within this section have been edited, if I click restore, that

42
00:02:34.780 --> 00:02:37.920
will restore them back to default.

43
00:02:37.920 --> 00:02:40.700
So you can see all of our different hot keys here.

44
00:02:40.700 --> 00:02:42.820
There's obviously a lot of different ones.

45
00:02:42.820 --> 00:02:47.460
If we get out of the 3D global, we could go into say object mode, which is the mode that

46
00:02:47.460 --> 00:02:48.460
we're in by default.

47
00:02:48.460 --> 00:02:51.780
Again, I'll talk about these here in a little bit, but you can see all the different hot

48
00:02:51.780 --> 00:02:53.540
keys for these.

49
00:02:53.540 --> 00:02:58.620
If you want to add a custom hot key, you can simply click add new, and then you toggle

50
00:02:58.620 --> 00:03:01.520
this down and you can set the Python path.

51
00:03:01.520 --> 00:03:06.180
So this gets a little bit more complicated, but basically you find the, as you can see

52
00:03:06.180 --> 00:03:12.540
in the tool tip here, the Python path is the key map item.id name.

53
00:03:12.540 --> 00:03:18.100
And so if we look at any one of these, such as join, you can see that it's object.join.

54
00:03:18.100 --> 00:03:23.860
And this gets much more complicated, but you can find these various ways for the different

55
00:03:23.860 --> 00:03:28.380
objects, such as, for example, if I go to say smooth shading here and I hover over it,

56
00:03:28.380 --> 00:03:36.980
you can see my Python tool tip is bpy or blender python.ops.object.shade.smooth.

57
00:03:36.980 --> 00:03:47.940
So if we were to go back to our user preferences and in this add new, this is going to be object.shade.smooth.

58
00:03:47.940 --> 00:03:52.340
And if I just set this to, let's just say, control shift s.

59
00:03:52.340 --> 00:03:53.340
Whoops.

60
00:03:53.340 --> 00:03:54.500
No, not control shift s.

61
00:03:54.500 --> 00:03:56.060
That's save file.

62
00:03:56.060 --> 00:03:58.820
Let's just do control alt s.

63
00:03:58.820 --> 00:04:00.980
That is also save file.

64
00:04:00.980 --> 00:04:01.980
How about this?

65
00:04:01.980 --> 00:04:06.740
We'll just do, how about alt shift s?

66
00:04:06.740 --> 00:04:07.740
Should work.

67
00:04:07.740 --> 00:04:11.860
We'll set it to alt s and then hit alt and shift.

68
00:04:11.860 --> 00:04:12.860
There we are.

69
00:04:12.860 --> 00:04:16.700
So now if I have this object and I want to shade it smooth, it should do alt shift s

70
00:04:16.700 --> 00:04:18.500
and it will shade it smooth.

71
00:04:18.500 --> 00:04:22.660
So if you want to add the custom hotkeys that aren't already there, that's how you do it.

72
00:04:22.660 --> 00:04:28.060
You first find the tool path, then you set the key and any modifier keys that you want.

73
00:04:28.060 --> 00:04:31.260
And then of course you'll save your default configuration.

74
00:04:31.260 --> 00:04:35.180
Or if we don't want this, we can just click delete and it will remove that hotkey.

75
00:04:35.180 --> 00:04:37.380
So that's it for editing hotkeys.

76
00:04:37.380 --> 00:04:41.980
But now real quick, let's take a look at a very easy way to add hotkeys.

77
00:04:41.980 --> 00:04:46.700
What I've just showed you was a little bit cumbersome, but also very good because it's

78
00:04:46.700 --> 00:04:52.340
very, very precise and you can do absolutely anything you want with the hotkeys basically.

79
00:04:52.340 --> 00:04:56.020
But in most cases, if you want to just add a hotkey very quickly, you don't want to have

80
00:04:56.020 --> 00:04:57.620
to go through that entire process.

81
00:04:57.620 --> 00:05:02.540
And sometimes you may even want to add a hotkey that's only a temporary one for a specific

82
00:05:02.540 --> 00:05:04.420
project that you're working on.

83
00:05:04.420 --> 00:05:08.160
You can actually add hotkeys simply by right clicking on the tool.

84
00:05:08.160 --> 00:05:12.200
So for example, going back to the smooth shading, if we want to add a hotkey back for

85
00:05:12.200 --> 00:05:17.480
the flat shading, I can simply right click on it, choose add shortcut, and then maybe

86
00:05:17.480 --> 00:05:21.800
I'll just hit Alt Shift and F and that will add in the hotkey.

87
00:05:21.800 --> 00:05:27.080
So if I hit smooth now and then Alt Shift F, it will set that back to smooth shading.

88
00:05:27.080 --> 00:05:33.680
And if we take a look at our 3D view global hotkeys now down at the bottom, it has given

89
00:05:33.680 --> 00:05:36.640
it should underneath object mode.

90
00:05:36.640 --> 00:05:41.200
We should now have one for shade flat as you can see here.

91
00:05:41.200 --> 00:05:47.040
So it's done the exact same thing as doing it manually, but it's obviously added it much

92
00:05:47.040 --> 00:05:48.040
quicker.

93
00:05:48.040 --> 00:05:53.000
Now the reason that I showed you how to do it step by step manually beforehand is because

94
00:05:53.000 --> 00:05:57.320
there will be some cases where it's not really possible to do that.

95
00:05:57.320 --> 00:06:02.980
So for example, if you wanted to say add a hotkey for some of these options down here,

96
00:06:02.980 --> 00:06:10.020
such as maybe switching the limit selection to visible to on or off, if you right click

97
00:06:10.020 --> 00:06:12.620
on this, there is no hotkey for this.

98
00:06:12.620 --> 00:06:18.040
However, you can find the data path here by saying use occlude geometry.

99
00:06:18.040 --> 00:06:20.540
So by doing it manually, you can add a hotkey for this.

100
00:06:20.540 --> 00:06:25.600
But since this is not a normal command, then sometimes you can't do that.

101
00:06:25.600 --> 00:06:30.520
And so for most tools, adding the hotkey via right click works great, you can change or

102
00:06:30.520 --> 00:06:32.660
remove shortcuts that way as well.

103
00:06:32.660 --> 00:06:34.820
But other times you have to do it manually.

104
00:06:34.820 --> 00:06:36.540
So that's why I showed you both.

105
00:06:36.540 --> 00:06:38.700
That's it for editing hotkeys.

106
00:06:38.700 --> 00:06:41.800
Very extensible, but a little complicated at times.

107
00:06:41.800 --> 00:06:44.600
But again, you can set a hotkey for basically anything.

108
00:06:44.600 --> 00:06:46.180
And so it really works quite well.

