Naming Conventions

Last Built: Apr 27, 2021

Previous topic Next topic
Development Issues Addon Development Setup

Naming ConventionsΒΆ

  • Stick to the official Python style guide (PEP 8).

  • Instances of Blender classes start with b_ whilst instances of nif classes start with n_. Examples:

    • n_obj for a generic pyffi.formats.nif.NifFormat.NiObject

    • n_geom for a pyffi.formats.nif.NifFormat.NiGeometry

    • b_mesh for a Blender bpy.types.Mesh

    • b_face for a Blender bpy.types.MeshFace

    • b_vertex for a Blender bpy.types.MeshVertex

    • b_vector for a Blender mathutils.Vector

    • b_obj for a Blender bpy.types.Object

    • b_mat for a Blender bpy.types.Material

    • b_bone for a Blender bpy.types.Bone

Todo

These conventions are not yet consistently applied in the code.