7

I'm trying to enable debug mode in blender 2.8 in order to see vertex indices in edit mode and from the instructions I'm following I'm supposed to execute bpy.app.debug = True but I still cannot see the indices. How do I do this in blender 2.8?

asoftbird
  • 1,463
  • 12
  • 21
Espen Sales
  • 1,182
  • 4
  • 16
  • 33

2 Answers2

12

You need to enable Developer Extras in the Interface settings, then you can enable vertex indices in the Viewport Overlays panel from the 3D viewport. You don't need to set the bpy.app.debug flag. Also, make sure to be in the Edit Mode. Object Mode will not show any vertex-related options.

enter image description here

enter image description here

Timaroberts
  • 12,395
  • 6
  • 39
  • 73
qCring
  • 491
  • 3
  • 9
3

Overlays are a new feature of 2.8

Setting vertex indices overlay via script

Test script. Sets on for all 3d views in screen.

import bpy

context = bpy.context
for a in context.screen.areas:
    if a.type == 'VIEW_3D':
        overlay = a.spaces.active.overlay
        overlay.show_extra_indices = True

Setting debug is only necessary for versions prior to 2.8

batFINGER
  • 84,216
  • 10
  • 108
  • 233