Scripts and programs built with the Autodesk Softimage SDK can interact with any other program that supports ActiveX. This means that the possibilities are endless. For example, you can send e-mail, import and export data from spreadsheets, or do anything that you can do with another ActiveX-compliant program.
For specific details on the methods and properties supported by the object classes of other ActiveX-compliant programs, refer to their documentation. However, if there is no documentation available, you can try using the Object Browser in Microsoft Visual Basic or the OLE/COM Object Viewer.
You can use the Object Browser provided with Visual Basic to see the properties and methods supported by the various ActiveX-compliant classes installed on your computer.
The Visual Basic Object Browser displays the hierarchy of any set of classes (such as the Softimage object model) as a visual cue to help you understand how to use its members. As long as you give Visual Basic access to the library file (*.tlb), which describes the library, including information about inheritance, you can use the Object Browser to load any of the Autodesk Softimage SDK libraries.
From the Project menu in your Visual Basic environment, select References.
Select the library you want to browse (for example, si3dobjectmodel.tlb has most of the native Softimage objects you would need to access) and click Open.
The References window appears again with your choice highlighted and selected in the Available References list box.
Click OK and then right-click on the code window to bring up the pop-up menu.
From the top left drop-down combo box, select SI3DOBJECTMODELLIB (or whichever Softimage library you installed in the browser).
You can now user the object browser to navigate through the Softimage type library you installed.
The OLE/COM Object Viewer is a Windows tool that you can use to see the ActiveX-compliant classes installed on your computer, together with their supported properties and methods. You can download it from: www.microsoft.com/com/resources/oleview.asp
The VBScript code that follows can be used to send an e-mail message using Microsoft Outlook. It could be included in another procedure to, for example, send yourself a message when a rendering job is finished.
sub msg( dst, subj, body ) dim a, b, olMailitem set a = createobject( "outlook.application" ) set b = a.createitem( olMailitem ) b.to = dst b.subject = subj b.body = body b.send() end sub msg "jdoe@acme_inc.com","Your render","has finished."
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License