Today, I am (officially) releasing the Torque Script Took Kit (TSTK). This kit is a collection of utility scripts (and other stuff) that I have written (and continuously improved) over the years.
I strongly encourage all Torque engine users to download this kit and to become familiar with it. I guarantee that this kit will save you hours of coding and debugging, and that it will help you write better scripints of your own.
I provide basic documentation on the kit here. However, at this time, I do not have a complete users guide for the kit. Instead, you'll need to take a look at the kit and try some things out on your own. Don't worry though, most of the scripts are self-explanatory in name and signature. Also, I will occasionally blog about features of the kit and give examples. To that end, let's get the ball rolling. Let me show you a couple of my favorite TSTK features.
My Favorite TSTK Features
There are some features in TSTK that I use nearly every day, in fact I can hardly imagine writing code without them. I think, after seeing the examples below, that you will agree and start using them too.
SimSet::forEach
This first script allows you to execute any method or function on every object in a SimSet. Typically, when when you want to call a method or function on the objects in a SimSet, you write code like this:
{ 1 comment… read it below or add one }
Thanks for the toolkit! this is an incredible resource for torque engine users.
Look forward to future tstk feature posts.