Blender 2.49 Scripting
暫譯: Blender 2.49 腳本編寫

Michel Anders

  • 出版商: Packt Publishing
  • 出版日期: 2010-04-29
  • 售價: $1,690
  • 貴賓價: 9.5$1,606
  • 語言: 英文
  • 頁數: 292
  • 裝訂: Paperback
  • ISBN: 1849510407
  • ISBN-13: 9781849510400
  • 相關分類: 3D建模 3D-modeling
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

If you already know Blender and some Python, this book will help you greatly increase the power and flexibility of this tool. Learn in easy steps how to use scripting to add brand new functions and efficiencies.

Overview

  • Gain control of all aspects of Blender using the powerful Python language
  • Create complex meshes programmatically and apply materials and textures
  • Automate the rendering process and extend Blender's image manipulation capabilities
  • Extend Blender's built-in editor
  • Interact with version control systems and store render results on a FTP server

What you will learn from this book

  • Discover what can be accomplished in Blender with the help of Python
  • Explore built-in modules and add an object to a Blender scene
  • Create configurable mesh objects and modify them
  • Define and enhance vertex group and add modifiers to an object
  • Explore scriptlinks and spacehandlers and perform activities on each frame change in an animation
  • Manipulate IPOs and act on frame changes
  • Build a web server delivering CAPTCHA challenges and archive unreferenced assets
  • Develop custom shaders and slope-dependent materials
  • Animate objects with complex constraints and relations and automate rendering
  • Extend Blender's image manipulation
  • Create simple and effective user interfaces

Approach

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 before diving into coding and gives extensive background information to enable the reader to generalize from the specific problem to a wider range of challenges. The sample code is provided as fully working examples with all key issues extensively highlighted. All sample programs are clear and concise yet nothing essential is left out and the programming style focuses on readability rather than on stylistic rigor or efficiency.

Who this book is written for

This book is for users comfortable with Blender as a modeling and rendering tool who want to expand their skills to include Blender scripting to automate laborious tasks and achieve results otherwise impossible. Blender experience is essential as is some experience in Python programming.

In Detail

Blender 3D is a popular, open source modeling package that can produce photo-realistic 3D images and animations. Automating tasks and extending the functionality of an extensive application like Blender will streamline your workflow and make the impossible possible. However, implementing scripts may be daunting.

This book takes a practical step-by-step approach to implementing Python scripts that cover almost all areas of Blender. It clearly outlines each problem and focuses on straightforward, easy-to-understand code, highlighting the common pitfalls and Blender idiosyncrasies. It guides you from the installation process and the creation of a simple object to elaborate, fully rigged models with vertex groups and materials all the way to extending Blender's built-in editor. It also teaches how to implement a simple web server inside Blender to serve rendered images. This book will take you from a clear problem description to a fully functional program. The focus is on finding your way in Blender's vast array of possibilities and getting things done without losing too much time on programming details. Each script is carefully explained to provide insight that can be reused in other projects.

This practical book will help you gain control over all the aspects of Blender using the Python programming language

商品描述(中文翻譯)

如果您已經了解 Blender 和一些 Python,本書將幫助您大幅提升這個工具的功能和靈活性。學習如何以簡單的步驟使用腳本來添加全新的功能和效率。

概述
- 使用強大的 Python 語言控制 Blender 的所有方面
- 以程式化方式創建複雜的網格並應用材質和紋理
- 自動化渲染過程並擴展 Blender 的影像處理能力
- 擴展 Blender 的內建編輯器
- 與版本控制系統互動並將渲染結果存儲在 FTP 伺服器上

您將從本書中學到什麼
- 發現使用 Python 在 Blender 中可以完成的任務
- 探索內建模組並將物件添加到 Blender 場景中
- 創建可配置的網格物件並對其進行修改
- 定義和增強頂點組並為物件添加修飾器
- 探索腳本鏈接和空間處理器,並在動畫的每個幀變更中執行活動
- 操作 IPO 並對幀變更進行操作
- 建立一個提供 CAPTCHA 挑戰的網路伺服器並存檔未引用的資源
- 開發自定義著色器和斜率依賴的材質
- 使用複雜的約束和關係來動畫化物件並自動化渲染
- 擴展 Blender 的影像處理
- 創建簡單而有效的用戶界面

方法
本書的重點是實際問題及如何在 Python 中解決這些問題。所提供的範例是有用的程式,旨在解決現實世界的需求。每一章圍繞一個單一概念,提供幾個逐漸增加難度的範例。每個部分首先分析問題,然後再進入編碼,並提供廣泛的背景資訊,以使讀者能夠從具體問題推廣到更廣泛的挑戰。範例程式碼作為完整的工作範例提供,所有關鍵問題均有詳細說明。所有範例程式都清晰簡潔,卻不遺漏任何重要內容,編程風格專注於可讀性,而非風格的嚴謹性或效率。

本書的讀者對象
本書適合那些熟悉 Blender 作為建模和渲染工具的用戶,想要擴展他們的技能以包括 Blender 腳本,從而自動化繁瑣的任務並實現其他方式無法達成的結果。擁有 Blender 經驗是必須的,並且需要具備一定的 Python 編程經驗。

詳細內容
Blender 3D 是一個流行的開源建模套件,可以生成照片真實的 3D 圖像和動畫。自動化任務並擴展像 Blender 這樣的廣泛應用的功能將簡化您的工作流程,並使不可能變為可能。然而,實施腳本可能會讓人感到畏懼。

本書採取實用的逐步方法來實施涵蓋幾乎所有 Blender 領域的 Python 腳本。它清楚地概述每個問題,並專注於簡單易懂的代碼,突顯常見的陷阱和 Blender 的特性。它指導您從安裝過程和創建簡單物件開始,逐步到複雜的完全裝配模型,包含頂點組和材質,最終擴展 Blender 的內建編輯器。它還教您如何在 Blender 中實施一個簡單的網路伺服器來提供渲染的圖像。本書將引導您從清晰的問題描述到一個完全功能的程式。重點在於在 Blender 的廣泛可能性中找到方向,並在不浪費太多時間於編程細節的情況下完成任務。每個腳本都經過仔細解釋,以提供可在其他項目中重用的見解。

這本實用的書將幫助您使用 Python 編程語言控制 Blender 的所有方面。