-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic batch exporting ps1 script
- Loading branch information
1 parent
794517b
commit 1d4aa26
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env pwsh | ||
# (c) MIT License, Tremeschin | ||
# | ||
# This PowerShell script runs depthflow for all images on a "input" folder | ||
# in the current directory, and batch renders videos to "output" | ||
|
||
if (-not (Test-Path "output")) { | ||
New-Item -ItemType Directory -Path "output" | ||
} | ||
|
||
Get-ChildItem -Path "inputs" | ForEach-Object { | ||
$filename = $_.BaseName | ||
|
||
# Change or add variations and parameters here! | ||
depthflow.exe input -i $_.FullName | ||
main -o "./output/$filename.mp4" | ||
|
||
# depthflow.exe input -i $_.FullName | ||
# dolly --intensity 0.5 | ||
# main -o "./outputs/$filename-orbital.mp4" | ||
} | ||
|
||
Write-Host "Finished! Press any key to continue..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters