ZBrushCentral

Question: Notify the user when a script has finished?

I’ve written a batch script that runs through a large amount of sub tools. This can sometimes take a long time to finish. Is there a way to script in a sound to play or some sort of notification to inform the user the script has finished?

Hi,

Welcome to ZBC! :slight_smile:

You can use the SoundPlay command to play a sound when the zscript has reached the end:

[VarSet,EndSound,"Trumpet.wav"]
[VarSet,EndSound,[FileNameResolvePath,EndSound]]
[MemDelete,EndSound_Mem]//make sure this memblock isn't around		
[If, [FileExists,EndSound],//if the file is there
	[MemCreateFromFile,EndSound_Mem,EndSound,]//create memblock from file
	[SoundPlay,EndSound_Mem]//play the sound
]

-Marcus

1 Like

Awesome! Works great, thanks a lot! Now I can accent all my scripts with obnoxious guitar riffs :metal:

1 Like