Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/rna_dump.py
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| seek(r[i], newtxt, recurs + 1) | seek(r[i], newtxt, recurs + 1) | ||||
| seek(bpy.data, 'bpy.data', 0) | seek(bpy.data, 'bpy.data', 0) | ||||
| # seek(bpy.types, 'bpy.types', 0) | # seek(bpy.types, 'bpy.types', 0) | ||||
| ''' | ''' | ||||
| for d in dir(bpy.types): | for d in dir(bpy.types): | ||||
| t = getattr(bpy.types, d) | t = getattr(bpy.types, d) | ||||
| try: | try: r = t.bl_rna | ||||
| r = t.bl_rna | except: r = None | ||||
| except: | |||||
| r = None | |||||
| if r: | if r: | ||||
| seek(r, 'bpy.types.' + d + '.bl_rna', 0) | seek(r, 'bpy.types.' + d + '.bl_rna', 0) | ||||
| ''' | ''' | ||||
| # print dir(bpy) | # print dir(bpy) | ||||
| #import sys | #import sys | ||||
| # sys.exit() | # sys.exit() | ||||
| print("iter over ", seek_count, "rna items") | print("iter over ", seek_count, "rna items") | ||||
| Context not available. | |||||