Model (Parameter)
Introduced
5.0
Description
Returns the Model to which the parameter belongs. The Model property can be very useful when you need to quickly locate something directly under the model such as a CustomProperty.
Note: This property cannot be used within the _Update function of a CustomOperator.
C# Syntax
// get accessor Model rtn = Parameter.Model;
Examples
JScript Example
var oMdl = ActiveSceneRoot.AddModel( null, "MyModel" ) ;
var oNull = oMdl.AddNull() ;
var oSizeParam = oNull.ActivePrimitive.Parameters("Size") ;
logmessage( oSizeParam.Model ) ;
//Expected output:
//INFO : MyModel
SOFTIMAGE|XSI v6.01