Join Patrick W. Crawford for an in-depth discussion in this video ✓Challenge: Create another operator, part of Blender: Python Scripting.
- [Narrator] Now let's do one final chapter challenge.…This time we're going to try and complete…a partially written out add-on.…Specifically, starting with the provided…blend and python file, your goal is to complete…the partially written…OBJECT_OT_add_spotlamps_per_mesh operator.…The goal of this operator…is to place a spot lamp above all the selected objects…in the current scene.…Additionally, you're going to create a property…as a part of this operator which is used…to define how far above each object the spot lamp…should be placed.…
This property should be called distance…and will appear in the redo last menu.…I expect that this challenge will take 10 to 15 minutes…using the skills developed in this chapter…as well as previously in this course.…If you open up the starting challenge blend file,…you should note that you have pre-loaded…the add-on challenge.py file.…If you run script, you should note…that already created for you is a panel…under the tool shelf create tab called add spotlights,…and within that panel there is the operator…
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
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.