From 2d2a8b61c7ad252f64be6796c7785b5110c067b6 Mon Sep 17 00:00:00 2001 From: yannk Date: Thu, 30 Dec 2021 10:14:18 +0100 Subject: [PATCH] Adding the size format to be specified by json file when rendering the sbsar file --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6a06557..0fc16af 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,12 @@ $(SBSAR_DIR)/%.sbsar: $(SBS_DIR)/%.sbs echo "listitem :"$$listitem;\ mkdir --parents $(TEXTURESET_FOLDER);\ echo $$listitem > $(TEXTURESET_FOLDER)/$$(basename -s .sbsar $@)_$$preset;\ - $(SBSRENDER) render $@ --use-preset $$preset --output-name {inputGraphUrl}\_$$preset\_{outputNodeName} --set-value \$$outputsize@10,10# --output-path $(PNG1024_DIR); \ + rendersize=$$(cat $(MATERIALLIST) | jq -r --arg folder "$${material}_$${preset}" '.[] | select(.name==$$folder) | .format') ;\ + echo "DEBUG : MATERIALLIST : $(MATERIALLIST)" ;\ + echo "DEBUG : material : "$$material ;\ + echo "DEBUG : preset : "$$preset ;\ + echo "DEBUG : material_preset : $${material}_$${preset}" ;\ + echo "DEBUG : rendersize : "$$rendersize ;\ + $(SBSRENDER) render $@ --use-preset $$preset --output-name {inputGraphUrl}\_$$preset\_{outputNodeName} --set-value \$$outputsize@$$rendersize# --output-path $(PNG1024_DIR); \ done;\