In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install BlenderPython, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Brief introduction
Blender is an open source cross-platform versatile 3D animation software, providing a series of animation short film production solutions from modeling, animation, materials, rendering, to audio processing, video editing and so on.
Blender has a variety of user interfaces to facilitate the use of different work, built-in green screen matting, camera reverse tracking, mask processing, post-node synthesis and other advanced film and television solutions. There is also a built-in cartoon stroke (FreeStyle) and a GPU-based Cycles renderer. Python is used as the built-in script to support a variety of third-party renderers.
Designed for media workers and artists around the world, blender can be used for 3D visualization, as well as for creating broadcast and film-quality videos, as well as a built-in real-time 3D game engine that makes it possible to produce 3D interactive content that plays independently.
With Blender, players who like 3D drawing can make their favorite 3D models without spending a lot of money. It not only supports all kinds of polygon modeling, but also can make animation!
The most important thing is that it is open source and can use python scripts, which is how important it is for a programmer who doesn't like interface operations.
In the following blog, I mainly explain some common operations of python script on blender, and find that there are fewer people in China who use Blender (probably because we can use maya and 3dmax without spending money), so the information is also relatively less, especially the information on python script is basically equivalent to none. In the process of learning, look up information on foreign websites, so record your learning process here to prevent yourself from forgetting it later.
Home page forum
Official home page: https://www.blender.org/
Chinese forum: http://www.blendercn.org/
Download and install
Go to the official home page to download (https://www.blender.org/download/) the corresponding installation package or zip package, and there are multiple platforms to choose from, including Linux, windows and Mac (this is also one of its advantages).
Of course, the download of the source code is also provided on the website, and if interested partners can download the source code and compile and install it themselves.
Python script
The latest version of blender is an integrated python3, so you should follow the syntax of python3 when writing python scripts for blender.
Console
Blender provides a python console window, you can directly enter commands to manipulate or render 3D models, and in the console window, some basic module has been automatically import (open console will be prompted, you can see the automatically loaded module).
You can switch the current window to the python console window interface, as shown in the following figure, and the buttons with up and down arrows in the status bar below can switch the current window interface (or use the Shift+F4 shortcut key). Click the Autocomplete button on the status bar below to automatically complete the command (or use the Ctrl+Space shortcut key, but it will conflict with the shortcut key of the input method switch of the Ubuntu system, and I don't know how to solve it. ).
Text editor
Blender provides a text editing window for python, where users can write python scripts (just like writing .py programs). Of course, writing basic module here requires manual import.
You can switch the current window to the Text Editor window interface, as shown below, click the status bar below + to create a new .py file, and use the button of the up and down arrow on the left side of Text to switch multiple .py files. Click the Run Script in the status bar below to run the script (I don't know how to view the printed results. If you know, you can reply, so generally define the method in the Text Editor window and use the method defined above in the python console window import, so you can see the corresponding print results in the console).
Info command output
In general, there will be an Info window on the interface, as shown below:
If you drag down the top or bottom border of this window, an output window of information will appear above or below the status bar, as shown below. I think the main function is that when you operate in other interfaces, the actions you do will be displayed in the window in the form of python script commands. For example, if you want to adjust the focal length of the camera, you do not know how to change it with the python command. So you first find the focal length of the camera on the interface, change it manually (this interface operation can usually be found), and then you can see the corresponding python command in this window, and then you can use it.
Thank you for reading this article carefully. I hope the article "how to install BlenderPython" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.