Post #4691: Python identifiers cannot start with a number.

📋 Metadata

🏷️ Tags

python-scripting intermediate solved

  • 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”.


🔗 View on Blender Artists