User Tools

Site Tools


blender:python:addonnotes:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blender:python:addonnotes:start [2022/02/16 00:32]
dwheele [Blender member variables]
blender:python:addonnotes:start [2022/02/19 18:19] (current)
dwheele [Blender Python Addon Notes]
Line 1: Line 1:
 ====== Blender Python Addon Notes ====== ====== Blender Python Addon Notes ======
   * [[..start|Full Blender Python notes]]   * [[..start|Full Blender Python notes]]
 +  * [[https://b3d.interplanety.org/en/working-with-uv-maps-through-the-blender-api/|Info about UV Meshes]]
  
 Doing research to make a panel to control Baking Texture assignments. Doing research to make a panel to control Baking Texture assignments.
Line 123: Line 124:
  
 ^BL Variable^Example^Description^ ^BL Variable^Example^Description^
-|bl_idname|VIEW3D_PT_test_1|Name of the object. If this is set, the panel gets a custom ID, otherwise it takes the name of the class used to define the panel. For example, if the class name is “OBJECT_PT_hello”, and bl_idname is not set by the script, then bl_idname = “OBJECT_PT_hello”| +|bl_context|uv|The context in which the panel belongs to| 
-|bl_label|Panel One|Name of the object, shows up in a menu. The panel label, shows up in the panel header at the right of the triangle used to collapse the panel| +|bl_idname|VIEW3D_PT_test_1|Name of the object. Unique identifier for buttons and menu items to reference.. If this is set, the panel gets a custom ID, otherwise it takes the name of the class used to define the panel. For example, if the class name is “OBJECT_PT_hello”, and bl_idname is not set by the script, then bl_idname = “OBJECT_PT_hello”| 
-|bl_space_type|VIEW_3D|| +|bl_label|Panel One|Display name in the interface. Name of the object, shows up in a menu. The panel label, shows up in the panel header at the right of the triangle used to collapse the panel| 
-|bl_region_type|UI|| +|bl_space_type|VIEW_3D|The space the panel will be used in. enum in [‘EMPTY’, ‘VIEW_3D’, ‘IMAGE_EDITOR’, ‘NODE_EDITOR’, ‘SEQUENCE_EDITOR’, ‘CLIP_EDITOR’, ‘DOPESHEET_EDITOR’, ‘GRAPH_EDITOR’, ‘NLA_EDITOR’, ‘TEXT_EDITOR’, ‘CONSOLE’, ‘INFO’, ‘TOPBAR’, ‘STATUSBAR’, ‘OUTLINER’, ‘PROPERTIES’, ‘FILE_BROWSER’, ‘SPREADSHEET’, ‘PREFERENCES’], default ‘EMPTY’
-|bl_category|Tool|Shows up as tab name+|bl_region_type|UI|The region where the panel is going to be used in. enum in [‘WINDOW’, ‘HEADER’, ‘CHANNELS’, ‘TEMPORARY’, ‘UI’, ‘TOOLS’, ‘TOOL_PROPS’, ‘PREVIEW’, ‘HUD’, ‘NAVIGATION_BAR’, ‘EXECUTE’, ‘FOOTER’, ‘TOOL_HEADER’, ‘XR’], default ‘WINDOW’
-|bl_options|DEFAULT_CLOSED|One of DEFAULT_CLOSED, HIDE_HEADER, INSTANCED, HEADER_LAYOUT_EXPAND - Formatting for this panel|+|bl_category|Tool|The category (tab) in which the panel will be displayed, when applicable. Leave blank if panel doesn't have tabs.
 +|bl_options|DEFAULT_CLOSED|One of DEFAULT_CLOSED, HIDE_HEADER, INSTANCED, HEADER_LAYOUT_EXPAND - Formatting for this panel, set to <nowiki>{'REGISTER', 'UNDO'}</nowiki> to enable undo|
 |bl_region_type|WINDOW|enum in [‘WINDOW’, ‘HEADER’, ‘CHANNELS’, ‘TEMPORARY’, ‘UI’, ‘TOOLS’, ‘TOOL_PROPS’, ‘PREVIEW’, ‘HUD’, ‘NAVIGATION_BAR’, ‘EXECUTE’, ‘FOOTER’, ‘TOOL_HEADER’, ‘XR’], default ‘WINDOW’| |bl_region_type|WINDOW|enum in [‘WINDOW’, ‘HEADER’, ‘CHANNELS’, ‘TEMPORARY’, ‘UI’, ‘TOOLS’, ‘TOOL_PROPS’, ‘PREVIEW’, ‘HUD’, ‘NAVIGATION_BAR’, ‘EXECUTE’, ‘FOOTER’, ‘TOOL_HEADER’, ‘XR’], default ‘WINDOW’|
  
blender/python/addonnotes/start.1644971547.txt.gz · Last modified: 2022/02/16 00:32 by dwheele