@volter/editor-blender 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1409 -0
- package/README.md +17 -0
- package/contributions/blender-header-menus.tsx +483 -0
- package/contributions/blender-icon-trace.mjs +403 -0
- package/contributions/blender-icons.source.mjs +2925 -0
- package/contributions/blender-node-editor.document.tsx +1402 -0
- package/contributions/blender-node-geometry.ts +1138 -0
- package/contributions/blender-node-panels.source.mjs +485 -0
- package/contributions/blender-outliner-authoring.ts +1729 -0
- package/contributions/blender-outliner-model.ts +389 -0
- package/contributions/blender-palette.source.mjs +319 -0
- package/contributions/blender-properties-model.ts +351 -0
- package/contributions/blender-properties-tab.tsx +100 -0
- package/contributions/blender-properties-view.tsx +1191 -0
- package/contributions/blender-runtime-skin.ts +619 -0
- package/contributions/blender-runtime.document.tsx +232 -0
- package/contributions/blender-timeline-geometry.ts +323 -0
- package/contributions/blender-timeline.document.tsx +1056 -0
- package/contributions/blender-uv-editor.document.tsx +483 -0
- package/contributions/blender-uv-geometry.ts +305 -0
- package/contributions/blender-version.status.tsx +93 -0
- package/contributions/blender.command.ts +102 -0
- package/contributions/blender.icons.json +1247 -0
- package/contributions/blender.icons.traced.json +1561 -0
- package/contributions/blender.keymap.ts +39 -0
- package/contributions/blender.node-panels.json +2436 -0
- package/contributions/blender.palette.json +93 -0
- package/contributions/blender.status.tsx +263 -0
- package/contributions/blender.style.ts +271 -0
- package/contributions/model.layout.ts +53 -0
- package/contributions/models.finder.ts +59 -0
- package/contributions/properties-bone-constraints.inspector.tsx +50 -0
- package/contributions/properties-bone.inspector.tsx +184 -0
- package/contributions/properties-collection.inspector.tsx +96 -0
- package/contributions/properties-constraints.inspector.tsx +69 -0
- package/contributions/properties-data.inspector.tsx +229 -0
- package/contributions/properties-material.inspector.tsx +121 -0
- package/contributions/properties-modifiers.inspector.tsx +74 -0
- package/contributions/properties-object.inspector.tsx +215 -0
- package/contributions/properties-output.inspector.tsx +210 -0
- package/contributions/properties-particles.inspector.tsx +494 -0
- package/contributions/properties-physics.inspector.tsx +614 -0
- package/contributions/properties-render.inspector.tsx +446 -0
- package/contributions/properties-scene.inspector.tsx +174 -0
- package/contributions/properties-texture.inspector.tsx +300 -0
- package/contributions/properties-view-layer.inspector.tsx +145 -0
- package/contributions/properties-world.inspector.tsx +130 -0
- package/contributions/sculpt.layout.ts +25 -0
- package/contributions/shading.layout.ts +99 -0
- package/contributions/texture.layout.ts +16 -0
- package/contributions/uv-editing.layout.ts +93 -0
- package/host/blender-runtime-host.ts +1256 -0
- package/package.json +77 -0
- package/src/layouts.tsx +48 -0
- package/src/looks.ts +14 -0
- package/src/node-view-state.ts +125 -0
- package/src/timeline-view-state.ts +154 -0
- package/src/uv-view-state.ts +125 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The BLENDER keymap (`@volter/editor-sdk/looks`, a `workspace.keymap`
|
|
3
|
+
* contribution). Only the chords that differ from the editor's own are
|
|
4
|
+
* declared; the host fills the rest from its default table.
|
|
5
|
+
*
|
|
6
|
+
* Every chord below is Blender's own, cited to its entry in
|
|
7
|
+
* `scripts/presets/keyconfig/keymap_data/blender_default.py` at the engine's
|
|
8
|
+
* pin (v5.2.0) — the file that IS the "Blender" keyconfig.
|
|
9
|
+
*/
|
|
10
|
+
import type { KeymapContribution } from '@volter/editor-sdk/looks';
|
|
11
|
+
|
|
12
|
+
export const point = 'workspace.keymap';
|
|
13
|
+
export const keymap: KeymapContribution = {
|
|
14
|
+
id: 'blender',
|
|
15
|
+
title: 'Blender',
|
|
16
|
+
description:
|
|
17
|
+
'Blender bindings: W select, G/R/S gizmo modes, X delete, Shift+D duplicate, A select all, Alt+A deselect, . frames.',
|
|
18
|
+
bindings: {
|
|
19
|
+
// `km_view3d`, `:1950-1955` — `op_tool_cycle("builtin.select_box", {"type": 'W'})`,
|
|
20
|
+
// bound whenever select is on the left mouse button, which is the default.
|
|
21
|
+
'transform.select': [{ key: 'w' }],
|
|
22
|
+
'transform.translate': [{ key: 'g' }],
|
|
23
|
+
'transform.rotate': [{ key: 'r' }],
|
|
24
|
+
'transform.scale': [{ key: 's' }],
|
|
25
|
+
// `km_object_mode`, `:4552` — `object.delete` with `use_global: False`.
|
|
26
|
+
// Blender's X raises a confirmation popup and ours does not; the deletion
|
|
27
|
+
// itself is `bpy.ops.object.delete()` either way.
|
|
28
|
+
'edit.delete': [{ key: 'x' }],
|
|
29
|
+
// `km_object_mode`, `:4563` — `object.duplicate_move` on Shift+D. Blender
|
|
30
|
+
// then runs a modal move on the copy; ours leaves it on the original's
|
|
31
|
+
// pose for the gizmo to move, which is what the Outliner and the `.blend`
|
|
32
|
+
// both read back.
|
|
33
|
+
'edit.duplicate': [{ key: 'd', shift: true }],
|
|
34
|
+
'edit.selectAll': [{ key: 'a' }, { key: 'a', mod: true }],
|
|
35
|
+
'edit.deselectAll': [{ key: 'a', alt: true }],
|
|
36
|
+
'viewport.frameSelection': [{ key: '.' }, { key: '', code: 'NumpadDecimal' }],
|
|
37
|
+
'viewport.cyclePivot': [{ key: ',' }],
|
|
38
|
+
},
|
|
39
|
+
};
|