Skip to content

Commit

Permalink
chore(key_frames): Docu for non-keyframeable properties
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSmeyer authored Mar 15, 2022
1 parent 9f42f73 commit aa6c5f1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/tutorials/key_frames.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ You can also set the camera pose to a specific key frame `i` via `bproc.camera.a
When setting object poses, e.g. via `obj.set_location(location)` they are by default set for all key frames.
If you want to assign object poses to a specific frame `i`, you can make use of the `frame` parameter: `obj.set_location(location, frame=i)`.


## Debugging

To inspect which keyframes are actually set, it is possible to view them in BlenderProcs debug mode (Read the [quick start](../../README.md#quickstart) to find out how to get into debug mode).
Expand Down Expand Up @@ -60,12 +59,14 @@ To now do the camera/object pose sampling and the rendering multiple times in on
```
<object loading>
<light setting>
<light creation>
for r in range(NUM_RUNS):
bproc.utility.reset_keyframes()
<setting random object poses>
<setting random light poses & strengths>
<camera sampling>
Expand All @@ -74,8 +75,8 @@ for r in range(NUM_RUNS):
<writing to file>
```


Other properties such as object materials can not be keyframed so all images of one render path will contain the same materials. For these properties, it's better to call the rendering function frequently with a single or few keyframes and manipulate between the render calls.

---

Next tutorial: [Positioning objects via the physics simulator](physics.md)
Next tutorial: [Positioning objects via the physics simulator](physics.md)

0 comments on commit aa6c5f1

Please sign in to comment.