Author Topic: Substance Painter save empty project at start  (Read 1195 times)

I have a littel problem. I want to create script which will be save my project on creation

First i run substance painter form python script:

fileSaveFolder = "D:/test/v101.spp"

Popen(['C:/Program Files/Allegorithmic/Substance Launcher/Substance Painter/Substance Painter.exe', "--mesh", self._alembicModel, fileSaveFolder, "--split-by-udim", "--export-path", "{}/tex".format(self._temporarySave)])

And now i have a question becouse when i press "Save" or "Save As" it dont open any save dialog window it just save it on location fileSaveFolder even there isnt any project url set. And there is my question how to get this direction form painter in qml.(this is situation when file v101.spp doesnt exists)

I want something like this:

import QtQuick 2.2
import Painter 1.0

PainterPlugin {
    onProjectOpened: {

And now i have second question how read,write, remove files becouse i use"C:/test/test.txt", 'r')) and i get something like this.
[Plugin - OpenAsset] {
  "impl": {
    "objectName": ""

And second question on remove i use alg.fileIO.File.remove(path) but it doesnt work.

On second question here is the answers. Open, 'r').readAll(), 'r').remove()