VertexColorMixer Operator

This example shows how to create an self-installed operator that reads from many vertex color properties and writes a 'processed' result to a vertex color property acting as the mixed result. The code shows how to implement port group instances, an advanced feature that allows you to connect many objects to the same port group, in this case "Group_1".

Example Files


Running the Example

To run the example

Building the C++ Example

Softimage SDK includes a compiled version of VertexColorMixer. If you want to modify the code, you can rebuild the example by following these instructions.

To build the example on Windows

  1. Open an Softimage command prompt, and type devenv to start Visual Studio .NET.

    Starting Visual Studio .NET from an Softimage command prompt ensures that environment variables such as XSISDK_ROOT are set (otherwise you'll get build and link errors).

    Tip To load the VertexColorMixer project from the command line, type:

    devenv VertexColorMixer.vcproj
  2. In Visual Studio .NET, open the project file .vcproj.
  3. Select a configuration (Win32 Release or Win32 Debug) and build the DLL.

To build the example on Linux

  1. In a shell (tcsh) window, type:

    source $XSI_HOME/.xsi_<xsi_version>
  2. Change directories to

  3. To remove all intermediate files before building the example, run this command:

    gmake clean
  4. To compile the example, run this command:



This example uses the following keywords:

C++ example, OperatorContext, OutputPort, ClusterProperty, PutUserData, CValue::siPtrType, GetUserData, Update, Operator, GetOperator, GetNumInstancesInGroup, GetNumPortsInGroup, Port, GetPortAt, GetPortType, siPortInput, InputPort, GetValue, CValue::siRef, ClusterProperty.GetType, vertexcolor, GetElements, JScript, RegisterCommand, Execute, CreateVertexColorSupport, ApplyOp, MakeLocal, siDefaultPropagation, SetInstanceDataValue, CAV, SelectObj, PaintVertexColorTool, PaintVertexColors