0
$\begingroup$

Can anyone help me explain what the "UI" region is? Unfortunately, I didn't get anything from their documentation. Thanks!

$\endgroup$
6
  • $\begingroup$ This question doesn't appear to be about Blender but 'UI' is usually an acronym for 'User Interface' if it helps. $\endgroup$
    – John Eason
    Commented Dec 25, 2021 at 9:44
  • 1
    $\begingroup$ @JohnEason It is about Blender. Blender divides the window into regions that have names and the names are relevant to Python. They're used, for example, in poll functions to decide whether Blender should run the draw routine of a class. $\endgroup$ Commented Dec 25, 2021 at 15:51
  • $\begingroup$ @MartyFouts Ok but the questioner wasn't exactly forthcoming about what he/she was referring to or whether they were even asking about Blender for that matter! :^) $\endgroup$
    – John Eason
    Commented Dec 25, 2021 at 23:17
  • $\begingroup$ @JohnEason Indeed. You have to both know what the Blender manual calls bits of the user interface and know that the Blender Python bpy library has an enum named something like bl_region_type that has a value UI to know what the question is actually asking. $\endgroup$ Commented Dec 25, 2021 at 23:25
  • $\begingroup$ Sometimes we have to be mindreaders in here! :^) $\endgroup$
    – John Eason
    Commented Dec 25, 2021 at 23:44

1 Answer 1

0
$\begingroup$

In most of Blender's Editor Types (most notably the 3D Viewport, but not in Outliner or Properties), hitting the N key makes what many people call "the N Panel" (Blender's manual calls it a Sidebar) appear/disappear in the right side of the editor. Python calls this panel the UI region.

Please note that I'm not particularly familiar with using Python for Blender, I got this from the Create your first Blender add-on article: "We want it to appear on the N panel, which by convention is called the UI region."

$\endgroup$

You must log in to answer this question.

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