Author archive for

Getting SDK help from an external editor

December 23rd, 2005 by Andy Nicholas. Viewed 14508 times.

If your editor supports the launching of external programs and allows you to insert text to the command line based on your current selection, then you can get context sensitive help from the XSI SDK help file. This will work for both the C++ and scripting SDKs. This snippet shows how to perform this in the Crimson Editor but it will work equally well in any other well supported editor that has this feature.

Debugging made easier

December 22nd, 2005 by Andy Nicholas. Viewed 14119 times.

The hyperlinks generated in the Script Editor when an script error is thrown can be very helpful in finding exactly where a problem has occurred. The only issue is that if you are using an external editor, the line number is not communicated to the editor to make it automatically scroll to the line of code that produced the error.

Most standalone text editors allow for a command line parameter to indicate which line number to position the cursor when opening a new file. By making a quick change to one of XSI”s scripts, we can communicate this to the external editor. To make this change, follow the steps below.

Using XML in scripting

September 16th, 2005 by Andy Nicholas. Viewed 18251 times.

This article is intended to be a fast primer to understanding XML for anyone who hasn”t had the time to investigate its capabilities. XML is a text based file format that allows you to define your own structure within the conventions laid out by the XML format. What follows will hopefully show you the benefits of using XML and how you can use it to manipulate data with minimum effort. How you then apply this to your technical solutions inside and outside of XSI is up to you.

The first part of this article looks at the ideas and concepts behind XML data. The second half will show how easy it is to put it into practice in scripting and C++.