Post #4691: Python identifiers cannot start with a number.
📋 Metadata
- Author: Pluglug
- Date: 2023-04-20 13:22:49
- Type:
answer - Quality Score: 8/10
- Reply to: post_04690
- Replies (1): post_04692
🏷️ Tags
python-scripting intermediate solved
⚙️ Related PME Features
- Python Scripting
- Macro Editor
💬 Content
Python identifiers cannot start with a number.
Testing in the Blender console will tell you why.
(Running it from menu search seems to work, but this is nothing short of miraculous.)
>>> bpy.ops.cam.0v0()
File "<blender_console>", line 1
bpy.ops.cam.0v0()
^
SyntaxError: invalid decimal literal
Try changing the bl_idname of the subclass that inherits from Cam_Base to something like “cam.s0v0”.