echo "${group}"
}
+# Arg1: group name
+function get_group_ref()
+{
+ local token
+ token=$(echo "${1}" | grep -e "^ref" | ${SED} "s/^\(ref\).*/\1/g")
+ echo "${token}"
+}
+
# Get duplicate from. Ex: "label:dup1-7 planXYZ,geometry..." will return 1
# Arg1: line
function get_dup_from()
# 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
p=$(get_pos "${l}")
nf=$(get_frame_id "${l}")
ng=$(get_group_id "${l}")
-
dup_from=$(get_dup_from "${l}")
dup_to=$(get_dup_to "${l}")
nf=${dup_from}
fi
+ log_dbg "Layer ${scene}"
+ log_dbg " nom: ${label}"
+ log_dbg " pos: ${p}"
+
+ group_ref=$(get_group_ref "${group}")
+ log_dbg " group_ref: ${group_ref}"
+
# Only change group if ng is set...
if [ x"${ng}" != x"" ]; then
- generate_video
+ if [ x"${group_ref}" != x"ref" ]; then
+ generate_video
+ fi
group="${ng}"
log_dbg "New group: ${ng}"
continue
fi
- log_dbg "Layer ${scene}"
- log_dbg " nom: ${label}"
- log_dbg " pos: ${p}"
+ if [ x"${group_ref}" != x"" ]; then
+ # Ignore all images in groupe-ref:
+ log_dbg " ignore (groupe-ref)"
+ continue
+ fi
files="${files} -page ${p} ${src}[${scene}]"