Skip to content

Commit 1d4aa26

Browse files
committed
Add basic batch exporting ps1 script
1 parent 794517b commit 1d4aa26

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Examples/Batch.ps1

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env pwsh
2+
# (c) MIT License, Tremeschin
3+
#
4+
# This PowerShell script runs depthflow for all images on a "input" folder
5+
# in the current directory, and batch renders videos to "output"
6+
7+
if (-not (Test-Path "output")) {
8+
New-Item -ItemType Directory -Path "output"
9+
}
10+
11+
Get-ChildItem -Path "inputs" | ForEach-Object {
12+
$filename = $_.BaseName
13+
14+
# Change or add variations and parameters here!
15+
depthflow.exe input -i $_.FullName
16+
main -o "./output/$filename.mp4"
17+
18+
# depthflow.exe input -i $_.FullName
19+
# dolly --intensity 0.5
20+
# main -o "./outputs/$filename-orbital.mp4"
21+
}
22+
23+
Write-Host "Finished! Press any key to continue..."

Website/learn/parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This section is about the **core parameters** of DepthFlow.
8787
1. That would simply move the image around without changing the perspective, which is what the [**`center`**](#center) parameter does.
8888
2. The camera always _"looks"_ to the image (`origin` parameter) by adding an opposite bias to the ray's projection on how much the image is displaced.
8989

90-
As you might expect, setting $x=cos(t)$ and $y=cos(t)$ parameter to follow a circular motion, will create a _"orbiting"_ effect around the center of the image.
90+
As you might expect, setting $x=cos(t)$ and $y=sin(t)$ parameter to follow a circular motion, will create a _"orbiting"_ effect around the center of the image.
9191

9292
<video loop autoplay controls src="https://assets.brokensrc.dev/depthflow/learn/parameters/offset-xy-varying.mp4"></video>
9393

0 commit comments

Comments
 (0)