-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShapeNet_bash.sh
More file actions
executable file
·43 lines (33 loc) · 1.38 KB
/
ShapeNet_bash.sh
File metadata and controls
executable file
·43 lines (33 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# -----------------------------------------------------------------------------
# CONFIGURATION
# -----------------------------------------------------------------------------
# Path to your Blender executable
BLENDER_PATH="/Applications/Blender.app/Contents/MacOS/Blender"
# Path to your Python script
SCRIPT_PATH="ShapeNet_batch.py"
# List of rotation angles to process sequentially
ANGLES=(15 30)
# -----------------------------------------------------------------------------
# EXECUTION LOOP
# -----------------------------------------------------------------------------
echo "🚀 Starting Sequential Batch Processing..."
echo "=========================================="
for angle in "${ANGLES[@]}"; do
echo ""
echo "------------------------------------------"
echo "▶️ Processing Angle: $angle°"
echo "------------------------------------------"
# Execute Blender in background mode (-b) with the python script (-P)
"$BLENDER_PATH" -b -P "$SCRIPT_PATH" -- "$angle"
# Check if the previous command was successful
if [ $? -eq 0 ]; then
echo "✅ Angle $angle° completed successfully."
else
echo "❌ Angle $angle° failed."
# Optional: exit 1 # Uncomment if you want the whole script to stop on error
fi
echo "------------------------------------------"
done
echo ""
echo "🎉 All batches finished."