Cargando…

Blender 2.49 scripting : extend the power and flexibility of Blender with the help of Python: a high-level, easy-to-learn scripting language /

The focus of the book is on practical problems and how to solve them in Python. The examples given are useful programs that try to solve real-world needs. Each chapter revolves around a single concept giving several examples gradually growing in difficulty. Each section analyses the problem first be...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Anders, Michel
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Pub., 2010.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; Table of Contents; Preface; Chapter 1: Extending Blender with Python; The Blender API; A lot of power; Some batteries included; Check for a full Python distribution; Installing a full Python distribution; The interactive Python console; Exploring built-in modules, the help() function; Exploring built-in functions, the dir() function; Getting familiar with the built-in editor; An editor example; First steps: Hello world; Integrating a script in Blender's menus; Integrating a script in Blender's help system.
  • Don't get confused, stay objectiveAdding different types of object from a script; Adding a mesh object; Distributing scripts; The Blender API; The Blender module; Blender objects; The bpy module; Drawing on the screen; Utilities; Summary; Chapter 2: Creating and Editing Objects; Creepy crawlies-a GUI to configure objects; Building the user interface; Creating bugs-some assembly required; Creating a user interface; Remembering choices; The full power of Blender graphics; Creating a new Mesh object; Transforming mesh topology; Code outline bridging edge loops.
  • Dazzle your boss-bar charts in Blender styleThe bar chart script; Weird faces-selecting and editing faces in meshes; Selecting warped (non-planar) quads; Code outline warp select; Selecting ultra sharp faces; Selecting vertices with many edges; Selecting poles; Selecting poles, again; Determining the volume of a mesh; Determining the centre of mass of a mesh; Some remarks about accuracy; Growing sunflowers-parenting and grouping objects; Groups; Parenting; Growing a sunflower from seed; Duplication versus instantiation; Growing a sunflower; Summary; Chapter 3: Vertex Groups and Materials.
  • Vertex groupsA weighty issue; Code outline: leftright.py; Modifiers; Engraving; Converting a Text3d object to a mesh; Extruding an edge loop; Expanding an edge loop; Putting it all together: Engrave.py; Flying sparks; Calculating the local curvature; Code outline: curvature.py; Putting it all together: St. Elmo's fire; Bones; Tick-Tock; Code outline: clock.py; Get a bit of backbone boy!; Materials; Object materials versus ObData materials; Assigning materials to parts of an Object; Vertex colors versus face materials; Adding materials to our engraving; Summary.
  • Chapter 4: Pydrivers and ConstraintsGetting to grips with animated properties; IPO; IPOchannels and IPOCurves; Constraints; Difference between drivers and constraints; Programming with constraints; Programming with IPOs; PyDrivers; PyConstraints; Setting the time-one to rule them all; Overcoming limitations: pydrivers.py; Internal combustion-correlating complex changes; More power-combining multiple cylinders to an engine; Adding simple constraints; Defining complex constraints; The Blender constraint template; Do you find me attractive too?; Snapping to mesh vertices.