I made script file.
but I cant input save file name in script.
please answer me.
Sorry, do you mean a file name for Python script itself?
You can use CTRL + N to create new script and then CTRL + S to save it with whatever name you want.
If you want to call a dialog window asking the user to save file, you can do that with the following line of code
for OBJ-files:
fileName = wrap.saveFileDialog("Save to OBJ-file",filter = "OBJ-file (*.obj)")
or for image files:
fileName = wrap.saveFileDialog('Save image file', filter = 'Image (*.jpg *.png *.bmp *.tga)')
thank you for reply.
but I mean…
I cant use input function or raw_input function
anyway I already resolve my problem.
thank you again.
Hi ryudeo!
Yes, it’s not possible in current version to use input() or raw_input() functions. As Andrew suggested you can use functions
http://www.russian3dscanner.com/docs/WrapX/wrapDialogs.html#wrap.openFileDialog,
http://www.russian3dscanner.com/docs/WrapX/wrapDialogs.html#wrap.openFilesDialog,
http://www.russian3dscanner.com/docs/WrapX/wrapDialogs.html#wrap.saveFileDialog.
Can you describe your case in more details? If using input() is natural way of solving your task we can add this functionality to the next update of WrapX and send you patched version.
saveFileName = input(“저장할 파일의 이름을 입력해 주세요.”)
저장할 파일의 이름을 입력해 주세요. Traceback (most recent call last):
File “<wrap_console>”, line 1, in
EOFError: EOF when reading a line
saveFileName = raw_input(“저장할 파일의 이름을 입력해 주세요.”)저장할 파일의 이름을 입력해 주세요. Traceback (most recent call last):
File “<wrap_console>”, line 1, in
EOFError: EOF when reading a line
Above is my console log.
I wanna naming save file’s name on console, not a file dialog.
input() or raw_input() is works fine on Python shell.
Why I cant use this function on WrapX console?
p.s. I’m not american. so I cant speak english well. forgive me
No problem with english, I fully understand you.
You can’t use input() and raw_input() in WrapX console yet because it is a bug. Embedding python console into application requires manual redirecting of inputs and outputs and there are some things that you don’t know until someone reports that it’s broken. I’ll try to fix it and will inform you when it will be OK.
Thank you so much, Ivan. thank you