There are a few last steps needed to package up an add-on using Python in Blender.
- View Offline
- Exercise Files
- [Instructor] Now let's complete our add-on,…by finishing up the panel code.…Closing this window.…Then moving up to where we templated out the panel class.…And we're gonna then maximize my screen…using Control+Up.…Then, un-comment this line.…As usual, the input to our panel…will be (bpy.types.panel), followed by a colon.…And then as by convention, using triple quotes,…we'll describe what this class is.…The smooth monkey add panel""".…And then, we're gonna give it…the bl_label = "Smooth Monkey".…
Note again, that I do not include the name panel…inside of the label, because that would be redundant.…Then we have the bl_idname = .…Here we're gonna use the more common convention…similar to the operator, where we use…OBJECT_PT for panel,…and then smooth_monkey", end quotation.…Then we'll use the bl_space_type = "VIEW_3D"…for the 3D window.…Followed by the bl_region_type = "TOOLS"…for the tool window.…
And then we're gonna use the bl_category = "Create" tab.…Note that this is not in all caps,…but matches the name of the tab in the user interface.…
AuthorPatrick W. Crawford
- Controlling Blender with code
- Exploring the bpy library
- Creating Blender operators and properties
- Writing scripts
- Auto running scripts
- Drawing interface elements such as panels and menus
- Building a custom add-on
Skill Level Intermediate
Introduction to Data Analysis with Pythonwith Michele Vallisneri2h 16m Intermediate
1. Controlling Blender through Code
2. Create Blender Scripts
3. Customize Blender Interfaces
4. Build Your Own Add-On
Next steps1m 15s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.