Working with Return Values and Output Arguments

This section explains what to expect when working with return values and output arguments (sometimes called output parameters), specifically when the language you are using does not support output arguments or when the Softimage function (command or property) both returns a value and uses an output argument.

 

This is largely a scripting/object model issue, since the C++ API provides a separate mechanism for calling commands (see Calling Commands from C++). However, there are still some aspects of accessing output arguments and return values in the C++ API that require some explanation.

 

Each language behaves slightly differently with respect to the level of support for commands vs. methods, output arguments vs. ISIVTCollections. For a breakdown by language, see Output Argument Support by Language.

The following examples are also provided:

VBScript Example: Output Arguments vs. the ISIVTCollection

VBScript Example: Getting Output Arguments from a Method

JScript Example: Using the Method ‘2’ Workaround

Python Example: Working with the ISIVTCollection returned from a Command

Example: Custom Command Workaround for Both Output Arguments and Return Values

JScript Example: Call the Work around Command



Autodesk Softimage v7.5