2
$\begingroup$

I wanted to view all the stuff inside bpy.types so I used the autocomplete inside the python console. However the results are cut off. How can I get the full list? I'm trying to find a method so I can call a function as soon as anything is imported.

enter image description here

Where the autocomplete list starts

$\endgroup$
1
  • 1
    $\begingroup$ In answer to title dir(bpy.types) produces a list of strings eg "VIEW3D_PT_overlay" the class being cls = getattr(bpy.types, "VIEW3D_PT_overlay") $\endgroup$
    – batFINGER
    Commented Jan 28, 2020 at 6:29

1 Answer 1

0
$\begingroup$

Okay I found an alternative situation. I wanted to make a dropdown menu that added all armature objects in the loaded file. My idea was for it to update every time an object is imported. I was able to achieve this based on dynamic list examples of this website:

https://elfnor.com/drop-down-and-button-select-menus-for-blender-operator-add-ons.html#dynamic-lists

$\endgroup$
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .