Repository navigation
Commit 0583b45
fix(skills): extension id rules match Blender's validator; permissions are not a sandbox
- bl-info-migration said `id` may be "reverse-DNS or short slug" and
addon-scaffolding gave the regex [A-Za-z_][A-Za-z0-9_]*. Blender's
pkg_idname_is_valid_or_error (bundled blender_ext.py, identical in 4.5.11 and
5.2.1) requires str.isidentifier() and rejects "__", a leading "_" and a
trailing "_". Both skills now state that rule with pass/fail examples.
- addon-scaffolding claimed an extension without `permissions` "is sandboxed
against network, files, clipboard, and camera"; the rule said bl_info-only
add-ons "are sandboxed by default". Permissions are declarations shown to
users; Blender does not restrict add-on Python. Text now says so, lists all
five valid keys (files, network, clipboard, camera, microphone), and points
at bpy.app.online_access for network code.
Proof (local, .scratch/blender-5.2.1-windows-x64, `blender --command extension
validate` on a copy of templates/extension-addon-template with the id swapped):
my_tool -> exit 0; com.acme.tool, _tool, my__tool -> exit 1.
bpy.app.online_access exists (False under --factory-startup).
Closes #328
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent c3ca5d8 commit 0583b45
3 files changed
Lines changed: 7 additions & 5 deletions
File tree
- rules
- skills
- addon-scaffolding
- bl-info-migration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments