What is a Return Value?

 
 
 

A return value is any value that a function sends back to the caller. However, we are using it here to specifically mean values that are retrieved with the assignment operator (=). For example:

// Get the user path from the application object
var sPath = Application.InstallationPath( siUserPath );
Application.LogMessage( sPath + " is the working path for the User." );

Identifying Return Values from the Reference

Softimage uses return values in some of its scripting commands and methods. For example, the X3DObject.AddModel method returns the model it creates but the X3DObject.RemoveChild method removes nothing:

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