Adding the size format to be specified by json file when rendering the sbsar file
This commit is contained in:
parent
35d964f3e6
commit
2d2a8b61c7
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -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;\
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue