This plug-in demonstrates how to use the change project event (siOnChangeProject) in JScript and C#. The plug-in property page lists 3 projects you can select through a radio button control. When a new selected project is activated, the siOnChangeProject event callback activates a new layout according to the activated project.
| Location | |
| Files |
projectselector.js
CSProjectSelector.cs
|
To install the example
Connect to the Softimage SDK workgroup at %XSISDK_ROOT%\examples\workgroup.
, locate the workgroup
folder and then click Select.To view the help page for an example
to go to Softimage Net local. In
the top navigation bar, click add-ons, and then
click the SDK example add-on.To run the JScript example
To run the C# example
Softimage SDK includes a compiled version of C# Project Selector. If you want to modify the code, you can rebuild the example by following these instructions.
To build the example on Windows
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 XSI_HOME are set (otherwise you'll get build and link errors).
Tip To load the CSProjectSelector project from the command line, type:
devenv cssrc\CSProjectSelector.csproj
This example uses the following keywords:
JScript, RegisterEvent, siOnChangeProject, Project, ActivePRoject, Layout, ActiveLayout.