Author Topic: [Javascript] Import mask in script  (Read 263 times)

Hello!

I try to create a tool in Javascript for Substance Painter 2019 to export / import masks (like this https://share.substance3d.com/libraries/1996).
I export masks using alg.mapexport.save() and I don't find an "inverse" function to import masks I just exported.

Thanks!
Coralie Goldbaum.

You can import files with the import functions in alg.resources. You won't be able to assign them in the Layer Stack directly however as we don't have any API exposed for that.
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Fabrice Piquet aka Froyok. Product Manager, Technical Artist and Documentation at Adobe.