ZBrushCentral

Make script pause while save/load file windows is open

Hello, I am trying to make a script that does some stuff before I export a file and then reverts that stuff after the export is finished.

I am a scripting newbie and my problem right now is how to make the script wait while the user is in the windows explorer window for naming the file etc, and then resume when they close it.

You can do this if you do the exporting within your zscript. You use the [FileNameAsk] command to get the file name and [FileNameSetNext] to make sure that file name is used next, then you do [IPress, Tool:Export] to do the actually exporting. Your zscript will continue to run and you can undo whatever changes you want.

However it’s not possible to export to all file formats from zscript - OBJ is OK but things like FBX actually use a plugin so won’t work.

HTH,
Marcus

Thanks for the info! Do you know if STL will work?