1
Substance Painter - Scripting - Re: Assigning variables to export textures output template [JS]
on: November 16, 2020, 10:47:59 am
Sorry for the delay it was a busy week :/.
So if i understood correctly, what i would try to do is use the other signal "onExportFinished()" and rename the exported files adding the name of the selected layer.
In onExportFinished(), for each stack exported, get the name of the selected layer (like you do in onExportAboutToStart()), transform the file paths of the exported maps to add the name of the layer, then use the alg. subprocess module to call the external tool of your platform to move files (MOVE on windows and mv on unix).
Cheers
Alex
So if i understood correctly, what i would try to do is use the other signal "onExportFinished()" and rename the exported files adding the name of the selected layer.
In onExportFinished(), for each stack exported, get the name of the selected layer (like you do in onExportAboutToStart()), transform the file paths of the exported maps to add the name of the layer, then use the alg. subprocess module to call the external tool of your platform to move files (MOVE on windows and mv on unix).
Cheers
Alex