# Set default values
bg_layer_name="background"
+ref_layer_prefix="ref"
# Pour conversion vidéo:
fps=8
echo "${token}"
}
-# Arg1: label
-function is_skip_label()
-{
- skip=$(echo "${1}" | grep -e "A8_.*")
-
- if [ x"${skip}" = x"" ]; then
- return 1
- else
- return 0
- fi
-}
-
print_usage()
{
echo "${PROG_NAME} -- Générateur de séquence d'images PNG à partir d'un fichier Photoshop (PSD)."
# Remove background line:
${SED} -i -e /label:${bg_layer_name},.*/d ${layers}
+ # Remove reference lines:
+ ${SED} -i -e /label:${ref_layer_prefix}.*/d ${layers}
+
# Create background frame:
convert -size ${size} xc:none ${dest}/background.png
log_dbg " nom: ${label}"
log_dbg " pos: ${p}"
- if is_skip_label "${label}"; then
- log_dbg " skip..."
- continue
- fi
-
files="${files} -page ${p} ${src}[${scene}]"
if [ x"${nf}" != x"" ]; then