Using C# with Softimage

 
 
 

C# (pronounced "C sharp") is a simple, type-safe programming language that represents a hybrid between C++ and scripting languages. Plug-ins written in C# are much faster than scripted plug-ins and as of v6.0, Softimage plug-ins can be written in C#.

For more information about the C# language, the Microsoft Developer's Network (MSDN) has technical specs and C# reference and overview documentation. In addition, MSDN offers a C# FAQ and Microsoft's GotDotNet provides a number of QuickStart tutorials.

Tip

If you don't have Visual Studio .NET 2010, you can use Visual C# Express, a free version that comes with full C# doc and a debugger.

How C# Works with Softimage

The Assembly is the primary unit of deployment within the .NET Framework; it is similar to a C++ .dll or .so file and can contain references to other assemblies and modules.

The Softimage Object Model type library has been ported to a C# assembly which allows developers to access the Softimage SDK using C#. Virtually the entire object model is accessible, except for a few interfaces which are not available:

How C# Plug-ins Work with Softimage

Instead of functions exported from a .dll, C# plug-in items are implemented as C# objects. You create a plug-in object that implements public methods matching the plug-in item callbacks. To get a hook into Softimage, you make sure you include the XSIOM (object model) assembly and then create a base object that will register the plug-in in Softimage. For more information, see Building Softimage Plug-ins with C#.

Important

See also Issues with Object Model Compatibility if you are using any plug-ins compiled with XSI v6.0 or earlier.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License