Graphics Reference
In-Depth Information
Figure 13-9 The Add Bouncing Cone operator in action
Clearly, this example only scratches the surface of the functionality of the Blender-Python API. However,
it should give you a sufficient sense of how operators and data are accessed through the API to begin digging
around for what you want yourself. There are many resources already built into Blender for finding what you
need. Operator names are listed in the mouse-over tooltips and are logged in the Info window as they are called
during ordinary Blender use. Script templates provide examples of a wide variety of functionality implemented
in Python. Furthermore, since most of the interface is actually written in Python, you can go straight to the in-
terfacecodeinyourscriptsdirectoryandstudy(oralter)itfirsthand.Inadditiontoallofthis,thereistheonline
API documentation to fill in any blanks.
The Complete Add Bouncing Cone Code
The Add Bouncing Cone script is listed here in its entirety, without breaks:
bl_info = {
"name": "Add Bouncing Cone",
"author": "Tony Mullen",
"version": (1, 0),
"blender": (2, 6, 2),
 
Search WWH ::




Custom Search