- added docs and examples for bpy.app.handlers
- correct error in own last commit for BKE_screen_find_big_area()
This commit is contained in:
		
							
								
								
									
										12
									
								
								doc/python_api/examples/bpy.app.handlers.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								doc/python_api/examples/bpy.app.handlers.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
"""
 | 
			
		||||
Basic Handler Example
 | 
			
		||||
+++++++++++++++++++++
 | 
			
		||||
This script shows the most simple example of adding a handler.
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
import bpy
 | 
			
		||||
 | 
			
		||||
def my_handler(scene):
 | 
			
		||||
   print("Frame Change", scene.frame_current)
 | 
			
		||||
 | 
			
		||||
bpy.app.handlers.frame_change_pre.append(my_handler)
 | 
			
		||||
		Reference in New Issue
	
	Block a user