Python API: setFileIOFilePath

Python API: setFileIOFilePath

Ihor_Skoda_Design
Participant Participant
397 Views
2 Replies
Message 1 of 3

Python API: setFileIOFilePath

Ihor_Skoda_Design
Participant
Participant

Hi!

 

I need a function in the Python API to change active working directory. As seen from the "File > Save As" dialog os.chdir() doesn't help. There is vrFileIO.getFileIOFilePath(), so there must be something like vrFileIO.setFileIOFilePath() - but such function does not exist. Please, help me to find some workaround.

 

Thanks in advance.

0 Likes
398 Views
2 Replies
Replies (2)
Message 2 of 3

__daniel.lincoln__
Alumni
Alumni
Hello,
Here is a possible workaround...
vrFileDialog.getSaveFileName('Save As:', 'C:/Temp/test.vpb', ['.vpb'], True)
0 Likes
Message 3 of 3

Ihor_Skoda_Design
Participant
Participant

Thank you, but how to connect this code to the VRED menu "File > Save As"?

0 Likes