Adding the size format to be specified by json file when rendering the sbsar file

This commit is contained in:
yannk 2021-12-30 10:14:18 +01:00
parent 35d964f3e6
commit 2d2a8b61c7

View file

@ -94,6 +94,12 @@ $(SBSAR_DIR)/%.sbsar: $(SBS_DIR)/%.sbs
echo "listitem :"$$listitem;\ echo "listitem :"$$listitem;\
mkdir --parents $(TEXTURESET_FOLDER);\ mkdir --parents $(TEXTURESET_FOLDER);\
echo $$listitem > $(TEXTURESET_FOLDER)/$$(basename -s .sbsar $@)_$$preset;\ 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;\ done;\