Beginner Blender Python Exercise: Track an empty with a camera (part 2)

preview_player
Показать описание

In this video, we will go over how to better organize the code of a Python script that sets up a camera to track an empty.

Start Code:

Final Code:

00:00 - Intro
00:18 - Get Code
00:36 - Setup Code
02:05 - Goal of the exercise
02:40 - Create a function for setting the end frame
09:10 - Create a function for creating a row of cubes
11:15 - Create a function for adding an empty
13:27 - Exercise: create the rest of the functions
13:54 - Go over the rest of the functions
19:36 - Outro

Intro Music
Fiery Trails - Silent Partner

Background Music
Where To - Birocratic

Outro Music
Geographer - Easy Shake

#blender #python #scripting
Рекомендации по теме
Комментарии
Автор

Awesome tutorial! I went over the exercise and I chose not to pass in the cube_count, location_offset, frame_count, fps as function parameters since these are global variables. Is there a preferred practice for passing these variables explicitly into a function?

zikekomakoma
Автор

For the create_row it can just be cube_array : p

MinecraftxFlow
Автор

Totally awesome. Sir, how can I import images in all blocks when images are in the local drive & CSV file contains all URLs. Waiting for another tutorial where you can add this feature.Thanks in advance.

papusahu-mdcg
Автор

awesome again!

do you use any interpreter (like pycharm) for blender?
if yes: how?
else: why not ? :)

fenyess
welcome to shbcf.ru