Cargando…

The Blender Python API : precision 3D modeling and add-on development /

Understand Blender's Python API to allow for precision 3D modeling and add-on development. Follow detailed guidance on how to create precise geometries, complex texture mappings, optimized renderings, and much more. This book is a detailed, user-friendly guide to understanding and using Blender...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Conlan, Chris (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [United States] : Apress, 2017.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • At a Glance; Contents; About the Author; About the Technical Reviewer; Introduction; Chapter 1: The Blender Interface; The Default Blender Interface; 3D Viewport; Header Menu; Properties Window; Tool Shelf and Tool Properties; Timeline; The Scripting Interface; Text Editor; Command Log; Interactive Console; Customizing the Interface; Starting Blender from the Command Line (for Debugging); Running Our First Python Script; Finding the Function; Testing the Function; Writing the Script; Conclusion; Chapter 2: The bpy Module; Module Overview; bpy.ops; bpy.context; bpy.data; bpy.app.
  • Bpy.types, bpy.utils, and bpy.propsbpy.path; Selection, Activation, and Specification; Selecting an Object; Activating an Object; Specifying an Object (Accessing by Name); Pseudo-Circular Referencing and Abstraction; Transformations with bpy; Visualizing Multivariate Data with the Minimal Toolkit; Visualizing Three Dimensions of Data; Visualizing Four Dimensions of Data; Visualizing Five Dimensions of Data; Discussion; Conclusion; Chapter 3: The bmesh Module; Edit Mode; Selecting Vertices, Edges, and Planes; Switching Between Edit and Object Modes Consistently; Instantiating a bmesh Object.
  • Selecting Parts of a 3D ObjectEdit Mode Transformations; Basic Transformations; Advanced Transformations; Note on Indexing and Cross-Compatibility; Global and Local Coordinates; Selecting Vertices, Edges, and Faces by Location; Checkpoint and Examples; Conclusion; Chapter 4: Topics in Modeling and Rendering; Specifying a 3D Model; Specifying Meshes; Specifying Textures; Common File Formats; Wavefront (.obj and .mtl); STL (STereoLithography); PLY (Polygon File Format); Blender (.blend) Files and Interchange Formats; Minimal Specification of Basic Objects; Definition of a Cube.
  • Naive SpecificationUsing Indices to Share Vertices and Normals; Using Coplanar Vertices to Reduce Face Count; Using Face Vertices to Simplify Indices; Representing a Cube as a Primitive; Summary; Common Errors in Procedural Generation; Concentric Normals; Flipped Normals; Z-Fighting; Conclusion; Chapter 5: Introduction to Add-On Development; A Simple Add-On Template; Components of Blender Add-Ons; The bl_info Dictionary; Operators and Class Inheritance (bpy.types. Operator); Panels and Class Inheritance (bpy.types. Panel); Register() and Unregister(); Scene Properties and bpy.props.
  • Precision Selection Add-On ExampleCode Overview for Our Add-On; The poll() Classmethod; EnumProperty Variables; Preparing Our Add-On for Distribution; Conclusion; Chapter 6: The bgl and blf Modules; Instantaneous Drawing; Handlers Overview; Clock Example; Managing Handlers; Types of Handlers; Persistent Handlers; Handlers in blf and bgl; Example Add-On; Drawing Lines and Text; Converting to the 2D Canvas; Declaring Button-Activated Drawing Functions; Declare Main Drawing Function; Declaring the Operator with Handlers; Declaring the Panel with Dynamic Drawing.