Hi people of zbrushcentral!
My goal is to save out a bunch of subtools into a couple of different .usd files using zscript.
I’ve created a zscript that loops through folders and hides / unhides them in order to export their content as a .usd file with the new Zbrush USD Format plugin. However I ran into issues when trying to trigger the Zplugin:USD Format:Save
button.
Since I’ve previously exported .obj I instinctively went to the [FileNameSetNext, #filepath]
routine in order to pick a save location for the file. However when I ran [IPress, Zplugin:USD Format:Save]
a filebrowser popped up. This isn’t a huge problem in itself since I can close it by running [IKeyPress, 13, [IPress, Zplugin:USD Format:Save]]
in order to close it. Unfortunately the filepath of the dialog isn’t the same as the one set by FileNameSetNext .
Is there an alternative way to set the export filepath of a USD file? Or is there a completely different way to achive what I’m trying to do, like calling USD Format plugin content though ZFileUtils or something similar?
Thank you for reading