1
$\begingroup$

Have you got any ideas on how to achieve this kind of interface that pops up at the 3d space? This image is from the archipack addon. Blender Archipack Panel enter image description here I've read the script and the panel itself is found on the 3d space UI and wondering how he created this type of panel with layout design and interactive buttons inside the panel.

$\endgroup$
0
$\begingroup$

You have to draw the interface yourself in a modal operator. See the modal operator template in the text editor, and use the bgl module to do the drawing.

$\endgroup$
0
$\begingroup$

Archipack's sample may be overkill, as it does override regular preset_loader operator and hide bgl logic behind an abstraction layer.
archipack_presets.py and archipack_gl.py

You may take a look at asset flinger implementation.
Asset flinger github repo

As a side note, bgl module is currently not supported in 2.8 series and a complete rewrite is planed, so this api is likely to change.

$\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.