This thread is to share source code, be it source code for full ZScripts/ZPlugins, a [RoutineDef,...] you find useful or C/C++ code for ZBrush <> .DLL/.LIB interaction. If your code makes something easier to achieve in ZScripting or you simply want to share what you have made then please post it here. Everybody will learn from it, most likely also the author.
If you have questions about the supplied source code you should either contact the author or start a new thread. You should not post questions in this thread. If you start a new thread please supply a link to the source code posting in this thread. Do not post the source code in another thread.
Any source code posted should be followed by a terms of usage statement. Source code for scripting languages are generally not ground breaking in their implementation but their function may be. The author should reserve the right to require certain conditions be met for use of the source code (see my Tiny Tools source code entry below for an example).
The terms of usage statement is entirely up to the person who posts the source code. People who make use of said source code should respect the wishes of the author.
There should be nothing legally binding when using/examening/modifying another persons source code from this thread. But please respect the authors wishes as stated in the terms of usage. A single misuse of source code will most likely stop everyone from posting in this thread. So please, please read the terms of usage and think before you post a modified version of a ZScript/ZPlugin. Do not think afterwards "was that part of the terms of usage?". If in doubt then contact the source code author.
When posting source code you should include the following information:
1) A name for the source code.
2) A brief description of the source code's function.
3) Terms of usage
4) A link to the full ZScript/ZPlugin if available or a source code related topic. Any source code related link(s) is ok.
5) Optional credits.
6) The link to the source code or the source code itself.
I should note that I am not the first to post source code, many ZScriptors did that for a long time and I am very grateful for that. I would not have learnt ZScripting without the help of people like Digits, Cameyo, Davey, Muvlo, WingedOne, Svengali and Marcus_Civis (I am sure I have forgotten somebody, sorry)
So to conclude: This thread is aiming to create a one stop list of source code for zscriptors. Please respect each source code authors terms of usage and this thread will one day be very long.