Skip to content

Commit 9d81cb4

Browse files
committed
Improve the batch exporting example powershell script
1 parent a6b8e93 commit 9d81cb4

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Examples/Batch.ps1

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
#!/usr/bin/env pwsh
22
# (c) MIT License, Tremeschin
33
#
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-
4+
# This PowerShell script runs depthflow for all images on a "inputs" folder
5+
# in the current directory, and batch renders videos to "outputs"
6+
#
7+
# Note: Save it as "run.ps1", right click and "Run with PowerShell" to execute
8+
#
9+
# Note: Grab a release and rename it to "depthflow.exe" on the same folder
10+
#
1111
Get-ChildItem -Path "inputs" | ForEach-Object {
1212
$filename = $_.BaseName
1313

1414
# Change or add variations and parameters here!
15-
depthflow.exe input -i $_.FullName `
16-
main -o "./output/$filename.mp4"
15+
.\depthflow.exe input -i $_.FullName `
16+
orbital `
17+
main -o "./outputs/$filename-orbital.mp4"
1718

18-
# depthflow.exe input -i $_.FullName `
19-
# dolly --intensity 0.5 `
20-
# main -o "./outputs/$filename-orbital.mp4"
19+
.\depthflow.exe input -i $_.FullName `
20+
horizontal --intensity 0.6 `
21+
main -o "./outputs/$filename-horizontal.mp4" --loop 3
2122
}
2223

23-
Write-Host "Press any key to continue..."
24+
Write-Host "Press any key to continue..."

0 commit comments

Comments
 (0)