PROG_NAME=$(basename $0)
# Set default values
-main_layer="Layer 558"
+bg_layer_name="background"
# Pour conversion vidéo:
fps=8
${SED} -i -e /label:,.*/d ${layers}
# Extract global frame size:
- size=$(get_size "${main_layer}")
+ size=$(get_size "${bg_layer_name}")
- log_dbg "CANVAS SIZE=${size}"
+ log_dbg "Background size: ${size}"
+
+ if [ x"${size}" = x"" ]; then
+ echo "Error: background layer not found"
+ exit 1
+ fi
+
+ # Remove background line:
+ ${SED} -i -e /label:${bg_layer_name},.*/d ${layers}
# Create background frame:
convert -size ${size} xc:none ${dest}/background.png
- # Remove first line (Layer 558):
- ${SED} -i -e '1d' ${layers}
-
# Will start at frame 2 at first loop iteration
f=1