1
$\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
    $\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 Jan 28 at 6:29
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

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.