One very useful feature is the auto-run python script checkbox. When enabled and saved in a blend file, anytime the file is opened after that the python script will automatically run. This is most commonly used with armature rigs that have cusotm UI panels defined for easier bone hiding/showing or FK/IK switching, but has many other uses as well.
- [Instructor] The next thing we're gonna look at…is making use of Blender's register capabilities…in the text editor to auto run scripts on load.…For this we wanna make sure we have a consul window open.…In some scenario's it may be very helpful…to make sure that when someone opens up a Blend file…some script runs in the background…and maybe even loaded.…A prime example of where auto loading scripts can be useful…is with character rigs that come packaged…with customized panels to assist the animators.…In this example here when I first opened this file you note…that the auto loaded script has not actually run yet,…due to auto run being disabled as a security feature.…
If you look at the animation it looks a little bit off…but after I run reload trusted and allow it to revert,…and then run the animation again.…Firstly we now have the custom panel…which allows us to show or hide different controls…of the armature as well as sliders,…such as for FK and IK controls,…and then further more the animation itself…has now been fixed.…
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.