Exemple #1
0
    def onSetHdrImagePressed(self):
        dialog = QtWidgets.QFileDialog()
        starting_directory = store.get(pcfg.art_directory)
        file_path = dialog.getOpenFileName(self, 'Choose HDR Image',
                                           starting_directory)

        if not file_path:
            return

        store.set(pcfg.hdr_image_path, file_path[0])
Exemple #2
0
    def setGameDirectory(self):
        dialog = QtWidgets.QFileDialog()
        starting_directory = store.get(pcfg.game_directory)
        directory = dialog.getExistingDirectory(
            self, 'Choose directory to export to', starting_directory)

        if not directory:
            return

        store.set(pcfg.game_directory, directory)
Exemple #3
0
    def setArtDirectory(self):
        dialog = QtWidgets.QFileDialog()
        starting_directory = pm.workspace(q=True, dir=True)
        directory = dialog.getExistingDirectory(
            self, 'Choose directory to export from', starting_directory)

        if not directory:
            return

        settings.setProject(directory)
        store.set(pcfg.art_directory, directory)
Exemple #4
0
 def onUnloadUnwantedPressed(state):
     store.set(pcfg.unload_unwanted, state)
Exemple #5
0
 def onExportInAsciiPressed(state):
     store.set(pcfg.export_ascii, state)
Exemple #6
0
 def onUseRenderPressed(state):
     store.set(pcfg.use_piper_render, state)
Exemple #7
0
 def onUseUnitsPressed(state):
     store.set(pcfg.use_piper_units, state)
Exemple #8
0
 def onUseToneMapPressed(state):
     store.set(pcfg.use_tone_map, state)