ZBrushCentral

zscript file load syntax?

What is the zscript equivalent to “[IPress,Tool:Load Tool]” and how can I throw it variables?

or any file load for that matter.

thnx.

[VarDef,filename,""]

[VarSet,filename,"MyZscript.txt"]
[FileNameSetNext,filename]
[IPress,Zscript:Load]

This assumes that the file ‘MyZscript.txt’ is in the same folder as the zscript for which this is the code; if it’s elsewhere then you’ll need to include the path in the ‘filename’ definition. Of course, you can also load files with the .zsc extension.